问题描述
我正在制作一个需要同时使用UITabBarController
和UINavigationController
的应用程序.我在情节提要中执行了以下流程.
I am making an app which requires a use of a UITabBarController
along with UINavigationController
. I have made the following flow in storyboard.
现在第一个问题是苹果公司接受了这一点,因为对此的讨论太多了.
Now the first question is that is this accepted by Apple, as there are too many discussions for the same.
另一个值得关注的问题是,是否有可能消除任何UINavigationController
并仍然获得与应用程序相同的流程?主要需要做的是在所有选项卡的子选项卡上都具有相同"选项卡栏和导航栏.需要注意的一点是,如果我删除第二个UINavigationController
,那么我的应用程序在单击后退"按钮时会直接从子选项卡导航到主视图控制器.
The other matter of concern is that is it possible to eliminate any UINavigationController
and still get the same flow of the app? The main thing required is to have the SAME tab bar and navigation bar on all sub tabs of the tabs. One point to be noted is that if I remove the second UINavigationController
then my app navigates directly from sub tab to home view controller on clicking back button.
自几个小时以来,我一直在坚持这一点.我是iOS应用开发的新手,从未将任何应用上传到应用商店.任何帮助都将非常有价值.
I have been stuck on this since hours now. I am new to iOS app development and have never uploaded any app to the app store. Any help would greatly valued.
我按照答案所示放置了第二个导航控制器-,并嵌入此图片中的导航栏控制器,其外观类似于
I put the second navigation controller as shown in the answers - and the embed navigation bar controller as in this image finally this will look like
这篇关于将UITabBarController与UINavigationController一起使用-Swift 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!