swift hidesBottomBarWhenPushed 设置界面
生活随笔
收集整理的這篇文章主要介紹了
swift hidesBottomBarWhenPushed 设置界面
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
方法一(推薦):一級界面push的時候設置,子頁面無需設置
let vc = JYMyCommissionController()vc.hidesBottomBarWhenPushed = trueself.navigationController?.pushViewController( vc, animated: true)
?
?
?方法二:設置兩個界面,
1. 一級界面(rootViewController)self.hidesBottomBarWhenPushed = trueself.navigationController?.pushViewController(JYMyCommissionController(), animated: true)self.hidesBottomBarWhenPushed = false2.二級界面 self.hidesBottomBarWhenPushed = trueself.navigationController?.pushViewController(JYMyCommissionController(), animated: true) 之后 所有子頁面不需要設置了
?
轉載于:https://www.cnblogs.com/qingzZ/p/10413583.html
總結
以上是生活随笔為你收集整理的swift hidesBottomBarWhenPushed 设置界面的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 快速体验 Sentinel 集群限流功能
- 下一篇: 4.21 LNMP环境介绍 4.22/2