Advertise here




Advertise here

Howdy, Stranger!

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

Sign In with Google Sign In with OpenID

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:
						@"days",
						@"weeks",
						@"months",
						@"years",
						nil]];
	returnSegmentedControl.frame = frame;
	returnSegmentedControl.segmentedControlStyle = UISegmentedControlStyleBordered;
	returnSegmentedControl.selectedSegmentIndex = 3;
Post edited by FlyingFox on

Replies

Sign In or Register to comment.