【发布时间】:2015-08-07 09:46:04
【问题描述】:
那一行在源代码中给了我一个警告
@property (nonatomic) dispatch_queue_t queue;
未指定“assign”、“retain”或“copy”属性 - 假定为“assign”
我的项目不是 ARC,目前我无法更改它。
如何修复警告? (非原子,assing)?
【问题讨论】:
标签: ios iphone automatic-ref-counting
那一行在源代码中给了我一个警告
@property (nonatomic) dispatch_queue_t queue;
未指定“assign”、“retain”或“copy”属性 - 假定为“assign”
我的项目不是 ARC,目前我无法更改它。
如何修复警告? (非原子,assing)?
【问题讨论】:
标签: ios iphone automatic-ref-counting
系统需要这 3 个属性中的任何一个,如果不存在,它将假定它是 assign 所选择的。如果你写(nonatomic, assign),它的工作方式与现在完全相同,所以,如果它工作正常,继续写assign。
【讨论】: