uitoolbar* tools = [[Uitoolbar alloc] Initwithframe:cgrectmake (0, 0, 150, 45)];
[Tools Settintcolor:[self.navigationcontroller.navigationbar Tintcolor];
[Tools Setalpha:[self.navigationcontroller.navigationbar Alpha]];
nsmutablearray* buttons = [[Nsmutablearray alloc] initwithcapacity:2];
Uibarbuttonitem *anotherbutton = [[Uibarbuttonitem alloc] Initwithbarbuttonsystemitem:uibarbuttonsystemitemsearch
Target:self Action: @selector (clicksettings:)];
Uibarbuttonitem *anotherbutton1 = [[Uibarbuttonitem alloc] initwithtitle:@ "Edit" style:uitabbarsystemitemcontacts
Target:self Action: @selector (Clickedit:)];
[Buttons Addobject:anotherbutton];
[Buttons Addobject:anotherbutton1];
[Tools Setitems:buttons Animated:no];
Uibarbuttonitem *mybtn = [[Uibarbuttonitem alloc] initwithcustomview:tools];
Self.navigationItem.rightBarButtonItem = mybtn;
Customize navigation bar Multiple buttons