How to add a custom button to a UINavigationBar (a la Foursquare)

Posted by jfisk on Stack Overflow See other posts from Stack Overflow or by jfisk
Published on 2012-07-02T03:13:03Z Indexed on 2012/07/02 3:15 UTC
Read the original article Hit count: 226

Im going through the different options of creating a custom UINavigationBar and since my app is iOS 5+, i am using this code:

// Set the background image all UINavigationBars
[[UINavigationBar appearance]  setBackgroundImage:NavigationPortraitBackground 
                                    forBarMetrics:UIBarMetricsDefault];

Now i want a custom image button on the very right side and am a bit lost. Should I go another way, subclass UINavigationBar and add a button to it or would there be an easier way?

© Stack Overflow or respective owner

Related posts about ios

Related posts about ios5