我移动了这一行:
@property (nonatomic, retain) IBOutlet UIWindow *window;
到我的App Delegate中的类扩展中,但现在出现此错误:
Illegal redeclaration of property in class extension 'AppDelegate' (attribute must be 'readwrite', while its primary must be 'readonly')
.m
文件中的完整代码如下所示:
@interface AppDelegate()
@property (nonatomic, retain) IBOutlet UIWindow *window;
@end
问题是什么?
答案 0 :(得分:0)
您粘贴的代码重量较轻,无法分析问题。
但是,从我猜测,你可能会删除.m文件中的声明。
您可以在以下链接中找到更多信息。