Saturday 15 January 2011

uiview - IOS Constraints for height (dynamic height change) -



uiview - IOS Constraints for height (dynamic height change) -

i having problem allowing xib file contain constraint values view increment view without covering view beneath it. not sure doing wrong.

essentially

(view1 here) -- lets (view2 here) -- lets

both in larger view when view 1 increases

(view1 here) (view1 increased content here) -- view2 covered instead of (view1 here) (view1 increased content here) (view2 here) -- should be.

sorry not using pictures, question seemed simple. tried adding constraints hasn't worked there easier programmatically, or? have been spending much time on this, , know couple things, don't understand why constraints don't work when have vertical spacing , top of view etc. nil seems work.

edit update: can see image need size accordingly. when alter tableview height of 1 of them, along label correspondence are. imageview there, contained in view in scrollview shown.

you have add together constraint between top of view2 , bottom of view 1 equal 0.

ios uiview swift xib nib

No comments:

Post a Comment