开发者

how to push a view from a ToolBar, BarButtonItem

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜