uitabbar底部菜单以获取更多选项
How to achieve the following UI using swift. I tried so many ways.
When I click on More, I need to show three options from the bottom of the current view controller.
Please suggest and provide ideas on how to achieve this.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以从uitabbarcontrollerdelegate实现委派方法:
func tabbarcontroller(uitabbarcontroller,shore shoseselect:uiviewController) - > bool
func tabbarcontroller(uitabbarController,didSelect:uiviewController)
,您只需将视图添加到选项卡控制器的视图中,即在Tab Bar上的“ Tab Bar Controller”视图(如果需要的话,请使用动画)。或者,您可以在负载并切换可见状态下立即添加它。
You can implement delegate methods from UITabBarControllerDelegate:
func tabBarController(UITabBarController, shouldSelect: UIViewController) -> Bool
func tabBarController(UITabBarController, didSelect: UIViewController)
Then you can just add your view to the tab bar controller's view above the tab bar (with animation if you want to). Or you can add it immediately on load and toggle visible state.