iOS 计步器 KWStepper
- 授权协议: MIT
- 开发语言: Swift
- 操作系统: iOS
- 软件首页: https://github.com/kyleweiner/KWStepper
- 官方下载: https://github.com/kyleweiner/KWStepper
软件介绍
KWStepper 是使用 Swift 编写的计步器,跟 UIStepper 是不一样的,KWStepper 允许一个完全自定义的 UI,并且提供可选择的委托方法来定制用户的体验。
var stepper: KWStepper?@IBOutlet weak var countLabel: UILabel!@IBOutlet weak var decrementButton: UIButton!@IBOutlet weak var incrementButton: UIButton!
self.stepper = KWStepper(
decrementButton: self.decrementButton,
incrementButton: self.incrementButton)if let stepper = self.stepper {
stepper.addTarget(self,
action: Selector("stepperDidChange"),
forControlEvents: .ValueChanged)
}
func stepperDidChange() {
self.countLabel.text = NSString(format: "%.f", self.stepper!.value)
}
Out of Control
Kevin Kelly / Basic Books / 1995-4-14 / USD 22.95
Out of Control is a summary of what we know about self-sustaining systems, both living ones such as a tropical wetland, or an artificial one, such as a computer simulation of our planet. The last chap......一起来看看 《Out of Control》 这本书的介绍吧!
