美文网首页
Xcode中出现Illegal redeclaration of

Xcode中出现Illegal redeclaration of

作者: Coder_JMicheal | 来源:发表于2018-05-23 16:01 被阅读171次

 当我们在@interface中声明属性的时候,偶尔会遇到类似于下面这个警告❌:
Illegal redeclaration of property in class extension 'XXXXTableViewCell' (attribute must be 'readwrite', while its primary must be 'readonly')
 原因是我们 重复声明 了该属性,
 解决办法:

删掉.h或者.m文件中多余的属性即可。

相关文章

网友评论

      本文标题:Xcode中出现Illegal redeclaration of

      本文链接:https://www.haomeiwen.com/subject/kqirjftx.html