Property follows Cocoa naming convention for returning 'owned' objects

现象:

xib中UIImageView拖线到对应文件命名为newImageView后,始终提示下面错误:
Property follows Cocoa naming convention for returning 'owned' objects

解决方案:

名称newImageView改为imageView。

错误原因:

命名不规范导致,属性名称不能以关键字符(比如alloc,new,copy,mutableCopy等)开头。

你可能感兴趣的:(Property follows Cocoa naming convention for returning 'owned' objects)