我有一个TextField,我想验证输入的文本是否为整数.我该怎么做?
我想写一个这样的函数:
func isStringAnInt(string: String) -> Bool { }
swift swift2
swift ×1
swift2 ×1