【发布时间】:2015-08-27 17:55:00
【问题描述】:
我正在尝试将UInt64.max 转换为String。
一行如:
var str: String = UInt64.max
在 XCode 中导致错误:
'UInt64' is not convertible to 'String'
再举一个例子,如下一行:
let strFromUInt: String = NSNumber(unsignedLongLong: UInt64.max)
在 XCode 中导致错误:
'NSNumber' is not convertible to 'String'
对不起,如果我在这里遗漏了什么,我对 iOS 开发还是很陌生。谢谢!
【问题讨论】: