I have a problem with a navigation bar in iOS 11. I use this code:
[UINavigationBar appearance].prefersLargeTitles = YES;
...to set a new
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