last day (15 days later) » 

6:59 PM
1
A: iOS Evenly space 5 labels in UITableViewCell

AceyHere's a list of constraints you'll need to make this happen: 1st label: Leading to container, top/bottom to container 2nd-4th labels: Top Alignment + Bottom Alignment to 1st Equal Width to 1st 5th label: Top+Bottom+Equal Width to the first Trailing to container Finally: And betwee...

 
Can this all be done through storyboard?
Your picture answered my question! Ha!
 
Yep yep. Added a picture because of your comment but I couldn't add the pic in a comment hah.
 
Do you mind giving names to the labels so I can see which labels the constraints are applied to? Thanks
 
I had named them so it would be easier but I had to reopen Xcode for it to update the labels in the constraints section. Go figure.
 
So I have applied this and it seems to work but my label widths are decreasing and so the text is being truncated with ellipsis... I don't necessarily want equal widths of all labels. 2,3,4,5 can be equal but 1 needs to be constant.
 
6:59 PM
Ah I see. Well then just make 3/4/5 have equal widths to 2 and fix up label 1 with a constant width constraint. Shouldn't be too bad =)
 
I have done that, see my updated question for results.
It appears the horizontal spacing is a constant value causing the labels to resize instead of a percentage...
I appreciate your help up to this point.
 
Did you be sure to set the horizontal space constraint between the labels to 0? If you created the constraint with the labels in place, they might have different values.
 
So if you were to edit the constraint, make sure the field constant is 0?
 
Yep, that's for the horizontal spacing contraints
 
Copy, standby.
Alright, so that worked but now all the labels are touching one in a row. Labels 3,4,5 are set to equal widths of label 2.
Do i just add a constant width constraint to label 2?
 
7:07 PM
Didn't you want the remaining labels to fill the extra space though?
 
Apparently, I do not know what I want. Lol. Its working just how I need. Thanks, I really appreciate it.
 
No problem
 

last day (15 days later) »