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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -