Xcode 9.0 iOS11 Has Screwed Up Right UIBarButtonItem

Viewed 545

older version of xcode (8.3.3) enter image description here

newer version of Xcode (9.0) enter image description here

Any idea what happened to the hearts+number (favorites) in storyboard? When I run the app, it's also still wrong.

View Structure

View Structure

Constraints of Favorites Background View

enter image description here

2 Answers

The solution for us was to use Safe Area Layout Guides and fix any autolayout constraint issues.

As a side note:, we tried changing it from just using the bar to a full UINavigationController approach. That looked promising. However, changing the tintColor status bar didn't work programmatically. So, we had to go back to the bar approach.

You must use Safe Area Layout Guides or add constraint to margins. If this not helps - try add constraint to superview.

Related