swift2.0更新
let userInput = "18"
let age:Int? = Int(userInput)
print ("your age \(age)")
let userInput = "18"
let age:Int? = Int(userInput)
print ("your age \(age)")
2015-12-07
看来swift的内置函数取名都是全名,嫌名字长的不是没学过OC就是英语渣渣,这样的函数对英语好的人非常容易记住和理解
2015-12-05