I want to add segmented control to the navigation bar but also keep the title and buttons, like in iOS 7 Appstore purchased section (example)
I have tried adding seg
My solution was this:
Add Toolbar and Segmented control to your xib file.
Customize it as you need and connect it to an outlet of your view controller:

Then, put this in the viewDidLoad method:
- (void)viewDidLoad
{
[super viewDidLoad];
// add after your setup code
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:self.segmentedControl];
self.navigationItem.rightBarButtonItem = item;
}
