2
votes

I have to show 3 Labels like

LABEL1 | LABEL2 | Label3 //Horizontally

I want these 3labels width are equally divided according to Screen size width

How can I achieve this with nib file directly?

Thanks

Question 2

Label1 | Label2 | Lable3

//All Labels widths are equally

//All Labels are Subview of a view call X view

Label1 : height is 100

Label2 : height is 150

Label3 : height is 300

Q: Now I want X view's height as max(100,150,300) = 300

1
do you mean, adding constraints by code? or through storyboard? - Ashish Kakkad
@AshishKakkad, through storyboard - user2526811

1 Answers

8
votes

Just give top, left , right, height and equal width constraints to all label....

enter image description here

enter image description here