NicolajB
NicolajB

Reputation: 285

additional button(s) to navigation bar in MonoTouch

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

Answers (1)

poupou
poupou

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

Related Questions