How*_*ard 0 iphone xcode objective-c ios
请考虑以下代码
id j = @"123";
NSUInteger a = [j unsignedIntValue]; // not working
NSUInteger b = [j intValue]; // works
Run Code Online (Sandbox Code Playgroud)
为什么在将NSString的对象转换为无符号整数时,只能intValue起作用?
| 归档时间: |
|
| 查看次数: |
453 次 |
| 最近记录: |