var slider = sender as UISlider
// var i = Int(slider.value)
var i :Int = Int(slider.value)
height.text = "\(i)厘米"
===>
return result.text = "\(name.text),\(age)岁,\(genderText),身高\(height.text),\(hasPropertyText),求交往! "=== >
打印出 如下:
Jack,Optional(21)岁,M,身高Optional("174厘米"),有房,求交往!
===>
请问为什么会有 Optional ??