iOS 错误 property's synthesized getter follows Cocoa naming convention for returning 'owned' objects

来源:互联网 发布:python工具 量化交易 编辑:程序博客网 时间:2024/06/07 17:33

今天写代码,突然间遇到如下错误:

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

通过查询,知道是苹果编译器 Xcode 不允许使用new 和copy 开头的命名

记得以前好像也出现过这样的错误,以此谨记。

0 0