Finding cause of "Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0"

Can Poyrazoğlu picture Can Poyrazoğlu · Nov 14, 2014 · Viewed 15.2k times · Source

I know the reason of this warning and how to solve it: to give a preferred width to the label.

The problem is that, when I click that warning, I don't see any label/view/viewcontroller selected. The storyboard opens and that's it. There are many view controllers with many views in my storyboard. How can I find out which label is causing the problem without iterating through all the view controllers manually? When I click the warning, I expect it to take me to the view causing the warning, but it just opens the storyboard.

Answer

Don Eichenseer picture Don Eichenseer · Jan 27, 2015

Here is one way to find the specific label that is causing this warning:

  1. Right click on the warning and choose "Reveal in Log"
  2. The warning in the log will be highlighted. Copy the interface builder object ID for this label (it looks like xxx-xx-xxx).
  3. Paste this in the Find Navigator. When you click on this result it will open the interface builder with the offending label selected.