带有自定义按钮导航的 XCode tabBarController
我之前有一个问题消失了,想发布一种不同的方法,看看是否可行。
我有一个工作应用程序,它有一个 UITabBarController 来控制 4 个不同的 UIViewController。我可以很好地浏览这些视图,但是一些已加载的视图需要加载其他视图才能执行操作。
是否可以在 UIViewController 中设置一个按钮,将当前视图替换为另一个视图,同时仍将选项卡栏保留在底部?是否可以替换当前视图并通知新的 UIViewController 或所有者 tabBarController 关系仍然相同?
如果您愿意,我可以发布代码并进一步澄清。我对 XCode 非常陌生,所以我还不完全熟悉一切是如何运作的。
提前谢谢你,
银虎
I had a question previously that died out and wanted to post a different approach and see if it was possible.
I have a working application that has a UITabBarController that controls 4 distinct UIViewControllers. I am able to navigate fine through these, but a couple of the loaded views need to load others in order to perform actions.
Is it possible to have a button within a UIViewController that will replace the current view with a different one and still maintain the tab bar on the bottom? possible replacing the current view and advising either the new UIViewController or the owner tabBarController that the relationship is still the same?
I can post code and further clarify if you wish. I am VERY new to XCode so i'm not completely familiar with how everything operates as of yet.
thank you in advance,
Silver Tiger
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以将新视图添加到选项卡中现有的视图中。
例如,如果选项卡中的视图控制器是基于导航的类型,那么您可以在特定事件上推送其他视图。
Yes you can add new view to one existed in the tab.
For example, if your view controller in tab is of type navigation based then you can push the other view upon certain event.