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

AppDelegate设置首页显示界面

时间:2015-07-26 17:36:00      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:

//
- (BOOL)application:(UIApplication *)application 
                    didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    self.window.backgroundColor = [UIColor whiteColor];
    
    MainTableViewController *mainT = [[MainTableViewController alloc] init];
    //创建NavigationController,可选择添加
    UINavigationController *nav = [[UINavigationController alloc] 
                                         initWithRootViewController:mainT];
    self.window.rootViewController = nav;
    
    [self.window makeKeyAndVisible];
                     
    return YES;
}


AppDelegate设置首页显示界面

标签:

原文地址:http://my.oschina.net/u/2346786/blog/483880

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