let myString: Int? = Int(stringValue)
if studentValue == nil {
//不是整数
}
// 整形转字符串
let myString = String(describing:myInt);
原文链接:https://www.f2er.com/swift/322003.htmllet myString: Int? = Int(stringValue)
if studentValue == nil {
//不是整数
}
// 整形转字符串
let myString = String(describing:myInt);
原文链接:https://www.f2er.com/swift/322003.html