Swift-String转Int

前端之家收集整理的这篇文章主要介绍了Swift-String转Int前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
    let a:Int?=Int(firstText.text)// firstText is UITextField 
    let b:Int?=Int(secondText.text)// secondText is UITextField





from:http://stackoverflow.com/questions/24115141/swift-converting-string-to-int/30773127#30773127

猜你在找的Swift相关文章