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?
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.
Note: my answer is about
UINavigationItem(which exists as a property in everyUIViewController) not an actualUINavigationBar. It’s not 100% clear which one you’re using.You can set a button on a
UINavigationItemwith theSetRightBarButtonItemmethod (or theRightBarButtonItemproperty).If you want multiple buttons then you need to use
SetRightBarButtonItems(not the ‘s’) method (or theRightBarButtonItemsproperties).But be aware that this API is only available on iOS 5 and later.