ASPickerView 0.1.2

ASPickerView 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2015
SPMSupports SPM

Maintained by TrungUng.



  • By
  • TrungUng

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

ASPickerView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ASPickerView"

Author

TrungUng, [email protected]

License

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

Using

Initialization

Programming
var timePicker = ASPickerView(frame: CGRectMake(20, 50, 320, 200))
timePicker.backgroundColor = UIColor.whiteColor()
self.view.addSubview(timePicker)

Xib:

Applied IBInspectable
Set Width/Height and number of coll

Delegation:

extension ViewController: ASPickerViewDelegate {
    func datePickerDidChange(hour: NSInteger, minute: NSInteger, second: NSInteger) {
        // Do any additional
        println("Hour: \(hour) - Minute: \(minute) - Second: \(second)")
    }
}