我一直在寻找在UIWindow
类引用和在那里我找到了UIScreen
属性,默认为[UIScreen mainScreen]
UIWindow中UIScreen属性的用法是什么?
@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
我们initiailise与UIScreen
的UIWindow
对象AppDelegate
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]
我想知道为什么我们需要UIScreen
财产UIWindow
感谢您的解释 – vinay 2014-12-19 08:42:03