ios手写代码添加控制器
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// 1.创建window
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// 2.设置window的背景色
self.window.backgroundColor = [UIColor whiteColor];
MyOneViewController *one = [[MyOneViewController alloc] init];
// [self.window addSubview:one.view];
self.window.rootViewController = one;
// 3.显示window
[self.window makeKeyAndVisible];
return YES;
}