cocoa touch - how to directly switch on another UITabBar? -


by button press want go last tabbar item: here code :

in appdelegate :

self.tabbarcontroller.viewcontrollers = @[navcontroller1, navcontroller2, navcontroller3, navcontroller4];  self.window.rootviewcontroller = self.tabbarcontroller; 

and in viewcontroller here action :

- (ibaction)registrationformbtnpressed:(id)sender {     self.tabbarcontroller.selectedindex = 2;      registerviewcontroller *rigstr = [[registerviewcontroller alloc]initwithnibname:@"registerviewcontroller" bundle:nil];     // [self.navigationcontroller pushviewcontroller:rigstr animated:yes]; } 

registerviewcontroller tabbarcontroller

i want clik on uibutton first tabbar , must go last (4) tab bar

how please pelase me

i dont understand how go directly last tabbar

thank in advance

please me out

thanks gusy i've solved problem, 1 more thing want add

it go selected index how select tabbar item when go selected index ?


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -