Reputation: 285
I can add a normal rightBarButton to my navigation without a problem but now I need an additional button next to the rightbarbutton..... same style :-)
And a still need to have the title in the navigation bar.
Is that possible at all?
Upvotes: 2
Views: 1665
Reputation: 43543
Note: my answer is about UINavigationItem
(which exists as a property in every UIViewController
) not an actual UINavigationBar
. It's not 100% clear which one you're using.
You can set a button on a UINavigationItem
with the SetRightBarButtonItem
method (or the RightBarButtonItem
property).
If you want multiple buttons then you need to use SetRightBarButtonItems
(not the 's') method (or the RightBarButtonItems
properties).
But be aware that this API is only available on iOS 5 and later.
Upvotes: 1