I have a toolba开发者_如何学Cr with 4 UIBarButtonItem's, on click of one of the buttons, i would like to change the current view controller to another view controller.
Could please tell me how i could achieve this??
Thanks,
BR, Suppi
Do you use UINavigationBar along with UIBarButtonItem? If so, then just casual
[self.navigationController pushViewController:theViewCntrlrYouWant animated:NO];
should fit to your wish.
(Edited according to Suppi's observation) If there's no navigation bar, then smth like:
YourViewController * first = [[YourViewController alloc] init];
[self presentModalViewController:first animated:NO];
[first release];
精彩评论