Tabbarcontroller、NavigationController 和 viewController
我制作了一个基于选项卡栏的应用程序,其中有三个选项卡。
每个选项卡都有NavigationController..
在其中一个选项卡中(让我们进入第一个选项卡),我在FirstViewController中有一个UIButton,它是NavigationController的rootViewController..通过单击按钮我导航到第二个ViewController...
现在我切换到第二个选项卡。再次切换回第一个选项卡,我打开了第二个视图控制器。
但我不希望这样......我想在切换回第一个选项卡时继续使用 FirstViewController ...
这可能吗???
如果是的话any1可以帮我解决吗?
任何帮助将不胜感激...
I have made a Tabbar based application in that i have three tab.
each of tab has NavigationController..
In one of the tab (lets take in the 1st tab), i have a UIButton in that FirstViewController that is rootViewController of NavigationController..by clicking on button i navigate to the secondViewController...
Now i switch to second tab. and again switching back to 1st tab i got secondViewController open.
but i don't want that....i want to go on the FirstViewController while switching back to 1st tab...
is it possible ???
if yes then can any1 help me to solve it out??
any Help will be appreciated...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 UITabbar 控制器的默认行为,以便用户可以返回到之前离开的视图控制器。您无法更改它。
That is the default behavior of UITabbar controller,so that the user can go back to the view controller which he had left from earlier.You cannot change it.