我正在查看UIWindow
类参考,在那里我找到了UIScreen
默认为的属性[UIScreen mainScreen]
@property(nonatomic,retain) UIScreen *screen NS_AVAILABLE_IOS(3_2);
// default is [UIScreen mainScreen]. changing the screen may be an expensive operation and should not be done in performance-sensitive code
我们用in初始化UIWindow
对象UIScreen
AppDelegate
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]
我想知道为什么我们需要UIScreen
在UIWindow