[英]Trying to create a Navigation Bar back button to a Tab Bar Controller view
I have a tab bar controller. 我有一个标签栏控制器。 From one of the views i want to goto another view via a button, which i have done.
我想从其中一个视图通过按钮转到另一个视图,我已经完成了。 Once on that page i want to go back using the navigation bar.
进入该页面后,我想使用导航栏返回。 This is the problem.
这就是问题。 How do i get it to go back to the tab bar controller page?
如何获取返回到标签栏控制器页面的信息? Thanks Mat
谢谢垫
You can arrange your view controllers as follows: 您可以按以下方式安排视图控制器:
Tab bar controller
Navigation Controller
View Controller 1 - button to go View Controller 2 using segue
View Controller 2
So, View Controller 2
will have a back button to go to its previous view controller. 因此,
View Controller 2
将具有一个后退按钮以转到其先前的View Controller。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.