- let myString: Int? = Int(stringValue)
- if studentValue == nil {
- //不是整数
- }
- // 整形转字符串
- let myString = String(describing:myInt);
- let myString: Int? = Int(stringValue)
- if studentValue == nil {
- //不是整数
- }
- // 整形转字符串
- let myString = String(describing:myInt);