-1

Possible Duplicate:
Change font size of UISegmentedControl
how to change the font size of UISegmentedControl text?

How i can change the text size of Segmented Control ?

anyone can help me !!

Community
  • 1
  • 1

1 Answers1

12

Note: This is only available for iOS5+.

UIFont *font = [UIFont boldSystemFontOfSize:12.0f];
NSDictionary *attributes = [NSDictionary dictionaryWithObject:font
                                                       forKey:UITextAttributeFont];
[segmentedControl setTitleTextAttributes:attributes 
                                forState:UIControlStateNormal];
Akshay
  • 2,973
  • 6
  • 43
  • 75
  • `UITextAttributeFont` is deprecated in iOS 7.0; instead use - `NSDictionary *attributes = @{NSFontAttributeName: [UIFont boldSystemFontOfSize:12.0f]};` – Mahendra Liya Jun 29 '14 at 10:59