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

iOS指定程序启动后初始的ViewController

时间:2016-05-13 05:18:58      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:launch   程序   


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    // Override point for customization after application launch.

    

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];

    UIViewController *rootViewController = [storyboard instantiateViewControllerWithIdentifier:@"MainView"];

    self.window.rootViewController = rootViewController;

    

    return YES;

}


本文出自 “ZhuoKing” 博客,请务必保留此出处http://9951038.blog.51cto.com/9941038/1772525

iOS指定程序启动后初始的ViewController

标签:launch   程序   

原文地址:http://9951038.blog.51cto.com/9941038/1772525

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