Tweak UI Navigation on iOS 11

前端 未结 2 1929
我寻月下人不归
我寻月下人不归 2021-01-19 05:27

I have a problem with a navigation bar in iOS 11. I use this code:

[UINavigationBar appearance].prefersLargeTitles = YES;

...to set a new

相关标签:
2条回答
  • 2021-01-19 05:35

    While I do not claim this is the solution for every situation the error occurs in, setting the navigationBar's isTranslucent property to true (which is also the default value) fixed the problem for me.

    If you want to keep your navigation bar non-translucent you can use the following code:

    navigationBar.barStyle = .blackOpaque
    
    0 讨论(0)
  • 2021-01-19 05:50

    I have catch this bug too, and we have found the solution.

    You must constraint your UITableView to superview (contentView of your view controller), after that large title and all related views starts to work correct.

    Like this:

    0 讨论(0)
提交回复
热议问题