首页 > 代码库 > error: property's synthesized getter follows Cocoa naming convention for returning 'owned' objects I

error: property's synthesized getter follows Cocoa naming convention for returning 'owned' objects I


error: property‘s synthesized getter follows Cocoa naming convention for returning ‘owned‘ objects
In file included from /Users/developer/Documents/StarShow/ShowWall/View/NewShowItemView.m:9:
/Users/developer/Documents/StarShow/ShowWall/View/NewShowItemView.h:13:41: note: property declared here
@property(nonatomic,strong)UIImageView *newImageView;

error: property‘s synthesized getter follows Cocoa naming convention for returning ‘owned‘ objects
/Users/developer/Documents/StarShow/ShowWall/View/NewShowItemView.h:17:42: note: property declared here
@property(nonatomic,strong)NewShowModel *newShowModel;



@property(nonatomic,strong)UIImageView *newImageView; 

这样子命名是错误的

一定要注意命名规范,不能以alloc,new,copy,mutableCopy 作为开头命名,比如:newPassword 

error: property's synthesized getter follows Cocoa naming convention for returning 'owned' objects I