iOS 11 prefersLargeTitles not updating until scroll

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

    Same issue with Swift 5.2

    my view contains tableView and prefersLargeTitles is not updating until scroll, I fixed it by setting

    self.tableView.contentInsetAdjustmentBehavior = .never
    

提交回复
热议问题