首页 > 代码库 > 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;
/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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。