Blog

UISegmentedControl change font, text color and text highlighted color

In a UISegmentedControl change their style is applied with another away from iOS 5.0
Declare one NSDictionary: attributes
Later to first insert your own style with object: [UIFont fontWithName: @ “Eraser” size: 12] and after the attribute to apply the object just written, in this case, UITextAttributeFont, the font.

Complete with highlightedAttributes:

This is the result:

UISegmentedControl