【发布时间】:2011-01-16 14:39:02
【问题描述】:
我在使用 NSUInteger 时遇到了一些问题,我尝试了各种方法并用谷歌搜索,但没有找到答案?
我有...我也尝试过...非原子,保留
@property (readwrite, assign) NSUInteger *anAmount;
@synthesize anAmount;
错误:属性 'anAmount' 的类型与 ivar 'anAmount' 的类型不匹配
当我在 dealloc 中释放它时,我会收到警告..
警告:无效的接收器类型“NSUInteger”
【问题讨论】:
-
NSUInteger不是对象类型,它是像int或float这样的原始类型。
标签: objective-c xcode