码迷,mamicode.com
首页 > 其他好文 > 详细

MyDelegate里边的设置

时间:2015-09-28 18:53:13      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

1.普通设置

    self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen]bounds]];
    self.window.backgroundColor = [UIColor orangeColor];
    ViewController *vc = [[ViewController alloc]init];
    
    self.window.rootViewController = vc;
    [self.window makeKeyAndVisible];
    return YES;

//这样就进入ViewController中

 

2.创建一个导航栏

    self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen]bounds]];
    self.window.backgroundColor = [UIColor orangeColor];
    MyTableViewController *vc = [[MyTableViewController alloc]init];
    UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
    self.window.rootViewController = nvc;
    [self.window makeKeyAndVisible];
    return YES;

//这样进去就有一个导航栏

记得包含头文件

MyDelegate里边的设置

标签:

原文地址:http://www.cnblogs.com/wanghengheng/p/4844550.html

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