ios - Size-classes and constraints with buttons -
i hope can here i've been reading , watching lot size classes i've started work on first app using size classes.i thought i'd got idea having slight issue.
i've got view 10 buttons in it. want buttons re-size fill desired screen can see screenshot below i'm left loads of white space on bigger views?
i've set constraints view , each other though aspect ratio should solve it....no, them 1 huge buttons , rest stay same!
i've researched lot guidance appreciated.
please see image of issue.
thanks
- pin top of top button superview.
- pin bottom of bottom button superview.
- assign fixed vertical space between each button.
- select buttons , specify "equal height."
this should take care of vertical constraints, , button heights equally expand or contract, depending on screen height.
Comments
Post a Comment