DateTimePicker

 收藏    我在用   0 人在用

iOS 10 风格的日历和时间选择器

 GitHub     下载     同步

27    1526    158    over 1 year前

DateTimePicker

A nicer iOS UI component for picking date and time.

Requirements

  • Swift 3.0 & Xcode 8
  • iOS 9 and later

Installation

Using Cocoapod

Just add the following to your podfile

pod 'DateTimePicker'

Manual install

Drag and drop folder Source to your project.

Usage

You can easily show and customize the component's colors

let picker = DateTimePicker.show()
picker.highlightColor = UIColor(red: 255.0/255.0, green: 138.0/255.0, blue: 138.0/255.0, alpha: 1)
picker.completionHandler = { date in
    // do something after tapping done
}

Contributing

Contributions for bug fixing or improvements are welcome. Feel free to submit a pull request.

Licence

DateTimePicker is available under the MIT license. See the LICENSE file for more info.

No Reply at the moment.
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up