ios - Constrained Based Layout Issue -
for life of me, can't figure 1 out. using auto layout in story board , works fine, when ignore error. layout shows no warnings or errors, still error. i've studied , guess can't read enough tell me conflicting....
any here appreciated..
( "<nslayoutconstraint:0xac58860 v:[uibutton:0xac579c0(22)]>", "<nslayoutconstraint:0x9df1030 v:[uiview:0xfc9eb70(1)]>", "<nslayoutconstraint:0x9df17b0 v:[uiview:0xfc9e470(22)]>", "<nslayoutconstraint:0x9df0810 v:|-(0)-[uibutton:0xac579c0] (names: '|':uiview:0xfc9e470 )>", "<nslayoutconstraint:0x9df05e0 v:[uibutton:0xac579c0]-(0)-[uiview:0xfc9eb70]>", "<nslayoutconstraint:0x9df00c0 v:[uiview:0xfc9eb70]-(0)-[uitableview:0xdb1aa00]>", "<nslayoutconstraint:0x9defc60 v:[uitableview:0xdb1aa00]-(0)-| (names: '|':uiview:0xfc9e470 )>" ) attempt recover breaking constraint <nslayoutconstraint:0xac58860 v:[uibutton:0xac579c0(22)]>
have been through errors , built it's doing?
so...
- uibutton 9c0 has height 22
- uiview b70 has height 1
- uiview 470 has height 22
- 470 superview of 9c0
- top of 470 top of 9c0 = 0
- bottom of 9c0 top of b70 = 0
- bottom of b70 top of tableview a00 = 0
- bottom of a00 bottom of 470 = 0
it's clear what's going on here.
you have uiview
0xf9e470 super view of uibutton, uiview , uitableview.
the super view has fixed height of 22. have button of height 22 , view of height 1 (thats 23 in total) has fit inside it. won't work.
you need remove (or update) height constraint of 0xf9e470.
Comments
Post a Comment