@IBAction func heightChanged(sender: AnyObject) { var slider = sender as UISlider // forecast var i = Int(slider.value) //slider.value = Float(i) heightShow.text = "\(i)厘米" }
slider.value为什么需要转回来,为了最终结果的输出?
@IBAction func heightChanged(sender: AnyObject) { var slider = sender as UISlider // forecast var i = Int(slider.value) //slider.value = Float(i) heightShow.text = "\(i)厘米" }
slider.value为什么需要转回来,为了最终结果的输出?
2014-10-28
举报