0

I have a UISegmentedControl with "n" number of segments. I need to adjust the font size of a segment button title based on a segment width. How to achieve it?

Example Screen:

enter image description here

TIA!!!

Vimalkumar N.M.
  • 493
  • 2
  • 4
  • 16

1 Answers1

0

Try this one it might help you segmentedControlName.setWidth(widthvalue, forSegmentAt: segment number you want to change width)

Example segmentedControl.setWidth(150, forSegmentAt: 1)

Naqeeb
  • 1,121
  • 8
  • 25