iphone - implementation of tab bar programmatically not in the rootView -


i asked same question before changed way implement tab bar have view

second view

i want when push button make tab bar composed in 5 buttons can choose in first view

    - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     self.window = [[[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]] autorelease];     // override point 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; } 

create uitabbarcontroller per normal. when user touches button, push controller:

yourtabcontroller *tabcontroller = [[yourtabcontroller alloc] initwithnibname:@"tabs" bundle:nil]; [self.navcontroller pushviewcontroller:tabcontroller animated:yes]; 

Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -