Can't declare another window
问题 I'm trying to declare another window in MyThing.m @property (nonatomic, strong) UIWindow *window; But get this error Illegal redeclaration of property in class extension "MyThing" (attribute must be 'readwrite', while its primary must be 'readonly') If I rename window to something else, it is OK. Why is that? Is window meant to be declared once in the AppDelegate.h ? 回答1: I figure out the problem, it has nothing to do with the window property declared in AppDelegate.h The problem is MyThing