WLTimeFrameView 0.0.5

WLTimeFrameView 0.0.5

luowanglin 维护。



  • 作者: luowanglin
  • luowanglin/WLTimeFrame

Build Status Pod Version Pod License Dependency Status

这个库提供了一个智能的时间框架。为了方便,我们增加了 UI 元素,如 WLTimePointerWLTimeFrameView

特性

  • 24hou

要求

  • iOS 8.0 或更高版本
  • Xcode 9.0 或更高版本

开始使用

  • 阅读此 Readme 文档

交流

  • 如果您 需要帮助,可以通过 [email protected] 联系我
  • 如果您想 询问一般问题,请通过电子邮件 [email protected] 联系我
  • 如果您 发现了错误,请提交一个 issue。
  • 如果您 有功能请求,请提交一个 issue。
  • 如果您 想要贡献,提交一个 pull request。
  • 如果您 想了解更多关于我的信息,请点击 我的页面

如何使用

  • Swift
import WLTimeFrame

let source:[WLTimeSpaceModel] = [WLTimeSpaceModel(startTime: 180.0, endTime: 220.0),WLTimeSpaceModel(startTime: 300.0, endTime: 400.0)]
let frameView: WLTimeFrameView = WLTimeFrameView.init(frame: CGRect.init(x: 0.0, y: 100.0, width: UIScreen.main.bounds.width, height: 66.0))
frameView.source = source
frameView.themeColor = UIColor.gray/*设置主题背景颜色*/
frameView.timeFrameColor = UIColor.orange/*设置时间片段颜色*/
frameView.pointer?.pointerColor = UIColor.red/*设置指针颜色*/
frameView.delegate = self
self.view.addSubview(frameView)

*委托


func endDragging(at time:Date)
func beginScroll(at time:Date)
func didScroll(at time:Date)
func endDecelerating(at time:Date)
  • 有关如何使用库和清晰示例的详细信息

安装

在项目中使用 WLTimeFrameView 有两种方法

  • 使用 CocoaPods
  • 将项目克隆到您的仓库中

使用 CocoaPods 安装

CocoaPods 是 Objective-C 的依赖管理器,它可以自动化并简化在项目中使用第三方库的过程。有关更多详细信息,请参阅入门部分。

Podfile

platform :ios, '8.0'
pod 'WLTimeFrameView'

如果您正在使用 Swift,请确保添加 use_frameworks! 并将您的目标设置为 iOS 8+

platform :ios, '8.0'
use_frameworks!

作者

许可证

所有源代码均受MIT 许可证许可。