iOS 11 prefersLargeTitles not updating until scroll

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

    That does seem like a weird behavior at first, but try setting the navigationItem.largeTitleDisplayMode to always. The default is automatic - and it's not defined how that works in the docs.

    Also wrote / will update an answer about large titles here.

提交回复
热议问题