码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-09-24 17:40:57      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:error propertys synt


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

标签:error propertys synt

原文地址:http://blog.csdn.net/u010241322/article/details/39523203

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!