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...

  1. uibutton 9c0 has height 22
  2. uiview b70 has height 1
  3. uiview 470 has height 22
  4. 470 superview of 9c0
  5. top of 470 top of 9c0 = 0
  6. bottom of 9c0 top of b70 = 0
  7. bottom of b70 top of tableview a00 = 0
  8. 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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -