webuildsg / iOS

iOS client for https://webuild.sg/
https://itunes.apple.com/us/app/we-build-sg/id1089421487
11 stars 4 forks source link

Fix auto layout warnings on DetailTableViewController #23

Closed jurvis closed 8 years ago

jurvis commented 8 years ago

Diagnosis

Because the cell's content height was set to be explicitly zero in heightForRowAtIndexPath, Auto Layout freaks out when it sees that a required height constraint of 17 is set on "view code" (this applies to any element with an explicit height constraint and not a relative one)

Implementation

Make any vertically-related constraints have a "High" priority instead of "Required".

References issue #14