Saturday 10 August 2013

implementation of tab bar programmatically not in the rootView

implementation of tab bar programmatically not in the rootView

I asked the same question before for the some but now i changed the way to
implement my tab bar i have this view

i want when i push a button it will make a tab bar composed in 5 buttons
the some that i can choose it in the first view
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen]
bounds]] autorelease];
// Override point for customization after application launch.
AcceuilViewController *viewController =[[[AcceuilViewController alloc]
initWithNibName:@"AcceuilViewController"
bundle:nil]autorelease];
self.navController = [[[UINavigationController
alloc]initWithRootViewController:viewController]
autorelease];
self.window.rootViewController = self.navController;
[self.window makeKeyAndVisible];
return YES;
}

No comments:

Post a Comment