-2

After searching and applying many result I have no desired solution for my problem.

How can I Set label so I can display all label with same font size in tableview cell.

I need to display 5 label and 2 button in one tableview cell in Horizontal.

enter image description here

Pls help me how can I set all label .

riddhi
  • 316
  • 2
  • 16
  • Use stackview horizontal and have each element to equal width with the first element – Yogesh Tandel Jan 13 '19 at 09:31
  • Not sure what is your question exactly ? . Did you set all the font size same in the storyboard or the code you are using ? Or please add more details to your question. – Max Jan 13 '19 at 13:15

1 Answers1

1

Please follow my steps.

Step1 :

Add 5 label and 2 button in storyboard tableViewCell.

Step2:

select all label with button then embedded in stackview

enter image description here

Step3:

Select the stackView and add autolayout. Leading 0 and trailing 0.

enter image description here

step4:

Select the attribute inspector and set the alignment and distribution like the picture.

enter image description here

Set the font.

It may helps you. Thank you.

Sanjukta
  • 1,057
  • 6
  • 16