Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.55 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.55 KB

ASPickerView

CI Status Version License Platform

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, trung.ungtoan@asnet.com.vn

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 col

Delegation:

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

Demo

alt text