當我滾動我的 時UITableView,視圖頂部會出現一個空標題,阻止用戶正確查看某些資訊,如以下螢屏截圖所示:

我怎樣才能洗掉這個?
uj5u.com熱心網友回復:
它實際上是UINavigationBar你所看到的。在你的 UIViewController 中試試這個來隱藏導航欄:
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
navigationController?.setNavigationBarHidden(true, animated: animated)
}
如果導航欄在導航堆疊中的先前視圖控制器中使用,請確保再次使其可見。
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/409542.html
標籤:
