I have a subclass based on UIView and i want to change the tint of the uinavigationbar but various methods I’ve tried haven’t worked. How do i do this?
Share
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.
As long as the view is in a viewController that’s part of the navigation stack you can do:
To access the viewController, you can declare an id as an ivar in your View class:
Declare this id as a property so it can be accessed from outside the View.
When creating the view from the viewController, you could pass a reference to the viewController into the view by doing:
Where
selfwould be the reference to your viewController on the navigation stack.Now that you’re in the view, you can access the navigation bar by doing this: