Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Xcode 5 find all misplaced views

I've just transitioned a storyboard-using project from Xcode 4 to Xcode 5, and have a whole bunch of Misplaced View warnings. However, Xcode seems to be a little shy about showing them to me. As I scroll around the storyboard and select things, Xcode adds these warnings to the Issue Navigator - and then, if I'm not quick to jump on them, removes them again without me actually changing anything. I haven't even figured out what actions trigger the warnings appearing and disappearing. This is really annoying - at one point there were about 20 warnings in there that promptly vanished before I could address them.

I'd like to track all these issues down and address them, but I don't know how. What causes Xcode to add and remove these warnings to the Issue Navigator, and how can I track them all down when Xcode keeps hiding them from me?

like image 267
Mark Amery Avatar asked Sep 19 '13 16:09

Mark Amery


1 Answers

I would go ahead and take a snapshot before you do this:

  1. Click on your XIB file
  2. Expand the dock
  3. Look along the right edge of the dock and you should see some yellow circle icons
  4. Click on the circle, it will change into a triangle
  5. Click on the triangle

You should see some radio buttons enabling you to update the constraints and a checkbox to apply the changes globally.

Click in "Fix Misplacement" and you should go back to "No Issues".

like image 61
linguri Avatar answered Nov 16 '22 08:11

linguri