iOS 11 prefersLargeTitles not updating until scroll

前端 未结 24 2738
轻奢々
轻奢々 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:15

    I had the same issue only on one tableview ...

    I had to set :

    self.tableView.contentInsetAdjustmentBehavior = .never
    

    so that my tableview stop scrolling when uiviewcontroller was loaded.

    It's the tableview automatic scrolling that makes the large title being hidden

    Hope this helps

提交回复
热议问题