码迷,mamicode.com
首页 > 移动开发 > 详细

【iOS】设置 rootViewController

时间:2016-07-05 22:34:22      阅读:375      评论:0      收藏:0      [点我收藏+]

标签:

iOS 开发中,rootViewController 经常用到,示例代码如下:

self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
self.window.backgroundColor = [UIColor whiteColor];
    
// 设置相应的 ViewController

[self.window makeKeyAndVisible];

 

【iOS】设置 rootViewController

标签:

原文地址:http://www.cnblogs.com/jaxer/p/5645062.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!