The Messages app on iOS places two bar button items next to the large title text "Messages" in the master view controller with a circled style.
How do you make your own bar button items in the navigation bar have this same behavior?
The Messages app on iOS places two bar button items next to the large title text "Messages" in the master view controller with a circled style.
How do you make your own bar button items in the navigation bar have this same behavior?
I think this demo project should give you enough hints to help you.
Addendum: You may be already aware of this, but in case you specifically wanted a search bar as well, there is also a UISearchController
ViewController to help with getting user input and populating a TableView with results.
Addendum: Looking into it further, there’s already an SO answer covering this. Additionally, consulting the API reference show that setToolbarItems
already supports adding an array of UIBarButtonItem
As far as custom buttons are concerned, check out this reference, there’s a section on customizing appearance. Additionally, the constructor for UIBarButtonItem
conveniently supports taking a UIImage
as well. If what’s there is insufficient to accomplish what you need, you can always subclass UIBarButtonItem
and change the views there.