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:
TIA!!!
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:
TIA!!!
Try this one it might help you segmentedControlName.setWidth(widthvalue, forSegmentAt: segment number you want to change width)
Example segmentedControl.setWidth(150, forSegmentAt: 1)