Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9.0 iOS11 Has Screwed Up Right UIBarButtonItem

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

like image 762
finneycanhelp Avatar asked Oct 04 '17 11:10

finneycanhelp


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.

like image 67
finneycanhelp Avatar answered Nov 16 '22 04:11

finneycanhelp


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

like image 1
Vladimir Prigarin Avatar answered Nov 16 '22 06:11

Vladimir Prigarin