UX Designer Question: Download UX Designer PDF

Explain me what is AutoLayout? What does it mean when a constraint is "broken" by iOS?

Tweet Share WhatsApp

Answer:

AutoLayout is way of laying out UIViews using a set of constraints that specify the location and size based relative to other views or based on explicit values. AutoLayout makes it easier to design screens that resize and layout out their components better based on the size and orientation of a screen. _Constraint_s include:

setting the horizontal/vertical distance between 2 views
setting the height/width to be a ratio relative to a different view
a width/height/spacing can be an explicit static value
Sometimes constraints conflict with each other. For example imagine a UIView which has 2 height constraints: one says make the UIView 200px high, and the second says make the height twice the height of a button. If the iOS runtime can not satisfy both of these constraints then it has to pick only one. The other is then reported as being "broken" by iOS.

Download UX Designer PDF Read All 67 UX Designer Questions
Previous QuestionNext Question
Tell us what's the difference between using a delegate and notification?Tell us what is the most interesting project you have worked on?