UIKit之UIWindow
作者:
MI移动 | 来源:发表于
2017-07-20 14:33 被阅读0次- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// 1.初始化window界面
self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
// 2. 设置window背景色
self.window.backgroundColor = [UIColor whiteColor];
// 3. 应用window到程序
[self.window makeKeyAndVisible];
// 4.设置窗口的主控制器
self.window.rootViewController = [UIViewController new];
return YES;
}
本文标题:UIKit之UIWindow
本文链接:https://www.haomeiwen.com/subject/ldodkxtx.html
网友评论