Error:"Property follows Coc

2016-06-02  本文已影响20人  iOSser

1.出现该问题的示例代码:

//新品图标

@property (nonatomic, strong) UIImage *newGoodsImage;

//新品Label

@property (nonatomic, strong) UILabel *newGoodsLabel;

2.报错的截图:

图一

3.解决办法:

最简单的办法是修改我们定义属性的名称:

不能以new, copy, alloc, 等关键字开头!
上一篇 下一篇

猜你喜欢

热点阅读