Trying to do something like:
[self setSelectedSegmentTintColor:tintColor];
[self setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor blackColor]}
forState:UIControlStateSelected];
[self setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor blackColor]}
forState:UIControlStateSelected|UIControlStateHighlighted];
[self setTitleTextAttributes:@{NSForegroundColorAttributeName: tintColor}
forState:UIControlStateNormal];
But looks like I cannot do forState:UIControlStateSelected|UIControlStateHighlighted
. This is how my tabs look:
Which is ok. But when I press the selected item, the text color changes to white (tint):
Any way to configure the text color for selected & highlighted?