【发布时间】:2011-07-14 16:26:18
【问题描述】:
我还有另一个讨厌的警告,我想离开。基本上,我有一个这样声明的 int:@property (nonatomic, assign) int *myInt; 并设置如下:myInt = 0;。它也在实现文件中综合。我在设置 int 值的那一行收到警告,上面写着 Incompatible intiger to pointer conversion assigning to 'int *' from 'int'. 我应该怎么做才能解决这个问题?
【问题讨论】:
标签: ios objective-c xcode pointers warnings