Skip to content

Instantly share code, notes, and snippets.

@wonkwh
Created August 25, 2011 19:36
Show Gist options
  • Save wonkwh/1171617 to your computer and use it in GitHub Desktop.
Save wonkwh/1171617 to your computer and use it in GitHub Desktop.
Create Tabbar without XIB(1)
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:
(NSDictionary *)launchOptions
{
UITabBarController *tabBarController = [[UITabBarController alloc] init];
[self.window setRootViewController:tabBarController];
// iOS 4.0 이전
//[window addSubView:[tabBarController view]];
[tabBarController release];
[self.window makeKeyAndVisible];
return YES;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment