技术的乐趣在于分享,欢迎多多交流,多多沟通。
全部博文(877)
分类: 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;
}