当前位置: 动力学知识库 > 问答 > 编程问答 >

iphone - when i press a tool bar button in any view it should load my root view or main view

问题描述:

i am new to this iphone....

i hav navigation controller ,itoolbar having the button in all view and when user gets taps this button it should load first view or main view ...

how should i do it

网友答案:
[self.navigationController popToRootViewControllerAnimated:YES];
分享给朋友:
您可能感兴趣的文章:
随机阅读: