uitableview - iOS Evenly space 5 labels in UITableViewCell -
i have prototype cell use display data. trying apply constraints 5 labels dynamically space evenly depending on device used display them. far, have been able add constraints constant values cause labels disappear off screen on small display devices. how add constraints evenly spaced between 1 another? thanks.
edit:
iphone 6:
here's list of constraints you'll need make happen:
1st label:
- leading container, top/bottom container
2nd-4th labels:
- top alignment + bottom alignment 1st
- equal width 1st
5th label:
- top+bottom+equal width first
- trailing container
finally:
- and between 2 adjacent labels, add 0 horizontal space constraint.
after of set up, click little triangle constraint tool in bottom right , update frames. should snap place!
here pic of final outcome in storyboard.
Comments
Post a Comment