最赞回答 / PersistentYouth
不仅那个没必要,之前已经绑定了,没要在拿sender 的值了。@IBAction func didHeightChanged(sender: AnyObject) { // var slider = sender as UISlider var i = Int(heightNubmer.value) hightValue.text = "\(i)cm" }
2014-10-28