因为,在Swift 2.x中,该 .toInt() 函数已从String中删除。作为替换,Int现在具有一个接受String的初始化程序: let a:Int? = Int(firstText.text) // firstText is ...
確定! 回上一頁