标签:ios objective-c iphone object_c
今天遇到一个奇怪的问题,一开始用下面的代码定义一个全局变量:
@property (strong, nonatomic) NSDictionary *newHomeDataDictionary;
结果一直报错误: Property‘s synthesized getter follows Cocoa naming convention for returning ‘owned‘,看了好久也找不出问题,后来该前面 new 单词,发现就可以了,这才发现是苹果禁止了所有已 new 关键字定义的变量,以后朋友我们要注意这一点,
自己留作提醒.
错误: Property's synthesized getter follows Cocoa naming convention for returning 'owned'
标签:ios objective-c iphone object_c
原文地址:http://blog.csdn.net/capacity_bo/article/details/45576691