Advertise here

Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Change font size for text in UISegmentedControl?

FlyingFoxFlyingFox Posts: 19Registered Users
edited February 2012 in iPhone SDK Development
Can the font size of text items shown in the tabs of a UISegmentedControl be changed? I need to make the text slightly smaller as it is quite big by default.

I am creating my segment control like this:
CGRect frame = CGRectMake(0, 0, 200, 30);
	UISegmentedControl *returnSegmentedControl
			= [[UISegmentedControl alloc] initWithItems:
					   [NSArray arrayWithObjects:
	returnSegmentedControl.frame = frame;
	returnSegmentedControl.segmentedControlStyle = UISegmentedControlStyleBordered;
	returnSegmentedControl.selectedSegmentIndex = 3;
Post edited by FlyingFox on


Sign In or Register to comment.