Frage

I was trying to make a custom UITableViewCell, and when I add this uiview to my cell it seems theres a problem on my constraints. Can you help me trace the layout or constraints error..

enter image description here

enter image description here

War es hilfreich?

Lösung

Set Priority for constraints. By default all constraints have 1000 points of priority. It's call conflicts. Just set priority for constraint V:[UIButton]-(10)-[UIButton] like height(750 points) and its solve your trouble. Or set not equal(==) constrains, but set >=,<=.

p.s. in visual format constraints between buttons needs like @"V:[button1]-(10@750)-[button2]" or @"V:[button1]-(>=10)-[button2]"

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top