iOS - UIWindow
前言 NS_CLASS_AVAILABLE_IOS(2_0) @interface UIWindow : UIView @available(iOS 2.0, *) public class UIWindow : UIView 1、Window 的创建 Objective-C // 声明窗口视图 @property (strong, nonatomic) UIWindow *window; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // 实例化窗口视图,window 的大小和当前手机屏幕一样大 self.window = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen].bounds]; // 设置 window 的背景颜色 self.window.backgroundColor = [UIColor whiteColor]; // 将窗口显示到屏幕...