I am using this for changing the text color of text of segmented control but its color is not getting changed in UIControlStateNormal
. I have to kept the same color for both states.
NSDictionary *highlightedAttributes = [NSDictionary
dictionaryWithObject:[UIColor blueColor] forKey:UITextAttributeTextColor];
[self.segmentController
setTitleTextAttributes:highlightedAttributes forState:UIControlStateSelected];