This topic created in 4632 days ago, the information mentioned may be changed or developed.
在ARC下,为什么NSNumber不允许和int 、 float进行转换?
编程环境为:ios7的sdk + xcode5
 |
|
1
laihj Jan 2, 2014
可以转啊,你怎么转的,转出什么问题了
|
 |
|
4
wity_lv Jan 3, 2014
没道理吧·· NSNumber *number = [NSNumber numberWithInt:1]; int val = [number integerValue]; NSLog(@"%@%d", number, val);
|
 |
|
5
chisj Jan 3, 2014
怎么可能!代码拿来看看!
|