首页 > 代码库 > 编译错误Property's synthesized getter follows Cocoa naming convention for returning 'owned' objectss

编译错误Property's synthesized getter follows Cocoa naming convention for returning 'owned' objectss

错误在于你的工程下的某一个类中的下面这行

@property (retainnonatomicNSString *newImage;

错误就是因为用了new这个关键字,所以说我把new改为news就好了

严格上来说,主要的错误原因是 声明属性时要遵循内存管理原则,即不要使用某些关键字

编译错误Property's synthesized getter follows Cocoa naming convention for returning 'owned' objectss