iOS 11 prefersLargeTitles not updating until scroll

前端 未结 24 2330
轻奢々
轻奢々 2021-01-31 07:25

I implemented a basic UIViewController with a UITableView that\'s wrapped in a UINavigationController. I set prefersLargeTitles to true:

override fu         


        
24条回答
  •  伪装坚强ぢ
    2021-01-31 08:11

    For me the only working solution is:

    DispatchQueue.main.async { [weak self] in
        self?.navigationController?.navigationBar.sizeToFit()
    }
    

    in

    viewWillAppear()
    

提交回复
热议问题