I need to adjust the width of each segment in a Segment Controller.
I tried;
segment.apportionsSegmentWidthsByContent = YES;
and it Worked ! But this supports only iOS 5, i need my app to support iOS 4 too. SO what is the iOS 4 equivalent of apportionsSegmentWidthsByContent ?
I don’t believe it can do it automatically; you’ll need to measure out the correct widths, and call setWidth:forSegmentAtIndex: on each segment, based on the amount of text in the control: