标签:main 可见 通过 class elf 直接 file 修改 UNC
self.window =[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; //设置窗口根窗口控制器 self.window.rootViewController //将窗口作为主窗口被设置可见 [self.window makeKeyWindow];
self.window=[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; //加载文件 UIStoryboard * board=[UIStoryboard storyboardWithName:@"ZXStoryboard" bundle:nil];//nil就代表在mainBundle这个路径下 //从storyboard中实例化控制器 UIViewController * viewController=[board instantiateInitialViewController]; self.window.rootViewController=viewController; [self.window makeKeyAndVisible];
self.window=[[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds]; XibViewController * xibVc=[[XibViewController alloc]initWithNibName:@"ZXib" bundle:nil]; self.window.rootViewController=xibVc; [self.window makeKeyAndVisible];
标签:main 可见 通过 class elf 直接 file 修改 UNC
原文地址:https://www.cnblogs.com/Im-Victor/p/13212852.html