iOS 计步器 KWStepper

码农软件 · 软件分类 · 其他(Others) · 2019-07-22 14:11:28

软件介绍

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)
}


本文地址:https://codercto.com/soft/d/10693.html

Out of Control

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》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具