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

AppDelegate 里一个基本的跳转方法,用来在rootView崩溃的时候直接调试我自己的页面

时间:2014-10-15 11:47:40      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:style   blog   color   io   ar   sp   div   on   cti   

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.rootViewController = [[MHSlidingManager sharedInstance] getSideViewController];
    self.window.backgroundColor = [UIColor whiteColor];
    [self.window makeKeyAndVisible];
    return YES;
}

改为

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
//    self.window.rootViewController = [[MHSlidingManager sharedInstance] getSideViewController];
    self.window.backgroundColor = [UIColor whiteColor];
    MHBaseNavigationController *baseNav = [[MHBaseNavigationController alloc] initWithRootViewController:[[MHBaseContentViewController alloc] init]];
 
    self.window.rootViewController = baseNav;
    
    [self.window makeKeyAndVisible];
    return YES;
}

 

AppDelegate 里一个基本的跳转方法,用来在rootView崩溃的时候直接调试我自己的页面

标签:style   blog   color   io   ar   sp   div   on   cti   

原文地址:http://www.cnblogs.com/guozai9527/p/4025694.html

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