The tint that usually shows on a UISegmentedControl on the selected button isn’t showing when I set the whole nav bar to black (self.navigationController.navigationBar.tintColor = [UIColor blackColor];).
Is this a bug or something I’m missing?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order for the tint color to show, there are a couple of requirements:
It’s required for the
tintColorto work.You also mention that you have the
tintColorset to[UIColor blackColor]. Unfortunately, theUISegmentedControlwill always display the selected segment with a darker color, never a lighter. Try setting yourtintColorto[UIColor darkGrayColor]and you should be able to see the selected segment change color.