Tweak UI Navigation on iOS 11

I have a problem with the navbar in iOS 11. I am using this code:

[UINavigationBar appearance].prefersLargeTitles = YES;

      

... set a new style for my application. It works well until the user pulls to refresh it on the table; then it breaks.

This happens before clicking "Update":

enter image description here

... and this is the following:

enter image description here

Note. I am using the built-in table view control controller.

I was looking for a solution, but it still eludes me. If anyone knows how to fix this, please leave a few tips.

Thanks for the support:)

+3


source to share


2 answers


While I do not claim that this is a solution for every situation that an error occurs, setting the navigationBar property isTranslucent

to true (which is also the default) fixed the problem for me.

If you want your navbar to be opaque, you can use the following code:



navigationBar.barStyle = .blackOpaque

      

+2


source


I caught this error too and we found a solution.

You should constrain your UITableView to view (the contentView of your view controller) after the title and all associated views start working correctly.



Like this: enter image description here

+2


source







All Articles