可能重复:
Change font size of UISegmentedControl
how to change the font size of UISegmentedControl text?
如何更改分段控制的文本大小?
任何人都可以帮助我!!答案 0 :(得分:12)
注意:这仅适用于 iOS5 +。
UIFont *font = [UIFont boldSystemFontOfSize:12.0f];
NSDictionary *attributes = [NSDictionary dictionaryWithObject:font
forKey:UITextAttributeFont];
[segmentedControl setTitleTextAttributes:attributes
forState:UIControlStateNormal];