When you say 'above' do you mean "on-top" or between the statusbar and navbar?
Have a look at apple's docs if you mean "on-top":
View Controller Programming Guide for iOS: Navigation Controllers
if the above link does not go straight to "
Customizing the Navigation Bar Appearance", then select that from the left column. Also from this link have a look at "
Listing 3-2 Creating custom bar button items"... They have a good sample code for putting in a segmented controller instead of a rightbarbutton. Just omit the line:
Code:
defaultTintColor = [segmentedControl.tintColor retain]; // keep track of this for later
in apple's sample code to got a prelim version up and running (you will also need two pics named up.png and down.png if you copy apple's code verbatim), as I don't think apple/iOS gives you access to the ones used in the mail app.
Based on the apple sample code in the link, the key to customizing the navbar button is in this line:
Code:
UIBarButtonItem *segmentBarItem = [[UIBarButtonItem alloc] initWithCustomView:segmentedControl];
where
initWithCustomView: is attached to a UISwitch, UIView, UIButton, etc...
Good luck.