Kyle Clegg
Kyle Clegg

Reputation: 39470

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?

Upvotes: 10

Views: 3556

Answers (4)

NeoLEAP
NeoLEAP

Reputation: 1

Selecting everything and turning auto layout to off and then back to on, in the file inspector pane in the storyboard, solved it for me

Upvotes: 0

Brian
Brian

Reputation: 31282

I got this silly issue, too. I selected all the elements, cut them, and pasted them again, then the warning disappeared. Really sucks.....

Upvotes: 2

tjdaniel2
tjdaniel2

Reputation: 181

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.

Upvotes: 9

Totka
Totka

Reputation: 627

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.

Upvotes: 7

Related Questions