Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Interface Builder - views are vertically ambiguous

Xcode is telling me that 8 views are vertically ambiguous, but it's not pointing to which view controller in my storyboard is actually causing the problem. I've clicked the warning message which just takes me to the storyboard and tried expanding all 20 something view controllers in the document outline, and none are showing that little warning indicator.

enter image description here

How can I determine the offending view controller?

like image 229
Kyle Clegg Avatar asked Oct 04 '13 12:10

Kyle Clegg


2 Answers

This might be a pretty ugly way of figuring out what views are causing the warnings but I was having the same problem. What I did was in the Issue Navigator, right click on the warning and click "reveal in log". In the log, xcode gave me the warning statements followed by a semicolon and a value. Then I opened the storyboard in TextEdit to see the XML of the storyboard. I searched the values and found that they were ID numbers for views in the storyboard. From there I was able to figure out what views in what view controllers caused the problems. Hope that helps.

like image 63
tjdaniel2 Avatar answered Nov 15 '22 20:11

tjdaniel2


if you open the left panel on storyboard (Document Outline) you will see a red circle with arrow near the ambiguous view name. click it to see more details.

Here is an example with the red circle with arrow.

Example of red circle with arrow

Those details may include another such red circle with arrow that will make suggestions.

like image 39
Totka Avatar answered Nov 15 '22 19:11

Totka