Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2609405
  • 博文数量: 877
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 5921
  • 用 户 组: 普通用户
  • 注册时间: 2013-12-05 12:25
个人简介

技术的乐趣在于分享,欢迎多多交流,多多沟通。

文章分类

全部博文(877)

文章存档

2021年(2)

2016年(20)

2015年(471)

2014年(358)

2013年(26)

分类: iOS平台

2015-12-03 17:16:24

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

{

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

    // Override point for customization after application launch.

self.tabBarController = [[UITabBarController alloc] init];

DecodeGifViewController *decodeVCtrl = [[ DecodeGifViewController alloc ] initWithStyle:UITableViewStyleGrouped ];

UINavigationController *decodeNaviVCtrl = [[ UINavigationController alloc ] initWithRootViewController:decodeVCtrl ];

decodeVCtrl.title = decodeNaviVCtrl.title = @"Decode";

decodeNaviVCtrl.tabBarItem.image = [ UIImage imageNamed:@"decode.png" ];

decodeNaviVCtrl.navigationBar.barStyle = UIBarStyleBlack;

EncodeViewController *encodeVCtrl = [[ EncodeViewController alloc ] initWithStyle:UITableViewStylePlain ];

UINavigationController *encodeNaviVCtrl = [[ UINavigationController alloc ] initWithRootViewController:encodeVCtrl ];

encodeVCtrl.title = encodeNaviVCtrl.title = @"Encode";

encodeNaviVCtrl.tabBarItem.image = [ UIImage imageNamed:@"encode.png" ];

encodeNaviVCtrl.navigationBar.barStyle = UIBarStyleBlack;

self.tabBarController.viewControllers = [NSArray arrayWithObjects:decodeNaviVCtrl, encodeNaviVCtrl, nil];

self.window.rootViewController = self.tabBarController;

    [self.window makeKeyAndVisible];

    return YES;

}

阅读(1064) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~