iOS 11 prefersLargeTitles not updating until scroll

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

    In the storyboard I set the Navigation Item's Large Title to Never.

    Navigation Item

    In my ViewController's viewDidLoad method I set the following:

    navigationController?.navigationBar.prefersLargeTitles = true
    navigationItem.largeTitleDisplayMode = .always
    

提交回复
热议问题