- (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;
}
本文转自 卓行天下 51CTO博客,原文链接:http://blog.51cto.com/9951038/1772525,如需转载请自行联系原作者