Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Introduction to Auto Layout in iOS Inequalities, Content and Priorities Inequality Relationships

Inequality Constraint Ambiguity

Hi there,

When I added the "greater than or equal to" and "less than or equal to" constraints to the helmet / header text, I got two warnings for "Inequality Constraint Ambiguity" on the two inequality statements. I'm not sure what is causing this, but in my preview screen it did not position the text towards the center of the screen like it did in Pasan's video. I ensured that all of my constraints matched, so I'm not sure why I'm experiencing this. Anyone have a clue?

This must be an issue with Swift 3, because when I downloaded the project files and converted them into Swift 3, it gave the same errors I'm experiencing. Hopefully this can be fixed / explained in the future videos with the Swift 3 track.

2 Answers

Hey man seems like there's been a lot of changes with Autolayout in swift3 and xcode i'd suggest watching the WWDC videos on adaptive layouts here https://developer.apple.com/search/?type=Videos&q=adaptive

John Newton
John Newton
42,984 Points

I'll have to check out the WWDC videos later for further research. But was anyone able to solve this specifically for the video exercise?