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.

uitableviewcell 5 uilabels

edit:

enter image description here

iphone 6: enter image description here

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.

constraints names


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -