Skip to content

trungungtoan-agilityio/ASPickerView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, [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 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