1

At the minute, my search controllers "navigation bar" background is the standard default translucent however, all the other bars in my app are black translucent. When I print the navigationController property of the searchController, it returns nil and so does the navigationBar, but not the navigationItem. There are no other public properties that seem to let you change the color of the bar. I don't mind overriding private ivars as I wont be releasing this app on the app store.

1 Answer 1

2

You can use the barTintColor property, in Swift this would be:

searchBar.barTintColor = UIColor.redColor() 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.