LargeTitles UIScrollView does not support multiple observers implementing _scrollViewWillEndDraggingWithVelocity:targetContentOffset

前端 未结 5 2707
执笔经年
执笔经年 2021-02-20 09:15

I have implemented large titles in my app with the following code:

if #available(iOS 11.0, *) {
            navigationController?.navigationBar.prefersLargeTitle         


        
5条回答
  •  轮回少年
    2021-02-20 09:40

    I've the same problem and I fixed it by removing this line from AppDelegate:

    UINavigationBar.appearance().prefersLargeTitles = true
    

    and handle prefersLargeTitles inside viewDidLoad in certain UIViewController

提交回复
热议问题