ios - Add another button next to the "back" button on the left of a UINavigationBar -
i've tried hours still cannot solve it. when using uinavigationcontroller , push new view controller on top, got free "back" button on left of navigation bar. want button next (to show popover menu). wonder correct way that. or have hide free button , make same 1 myself? if that's case, need pop current view controller when pressing own button, right?
thanks help.
as stated steipete in comment question, possible starting ios 5. can use
self.navigationitem.leftitemssupplementbackbutton = yes; and need add uibarbuttonitem leftbutton second button after button
uibarbuttonitem *secondbutton = [[uibarbuttonitem alloc] initwithtitle:@"second" style:uibarbuttonitemstyleplain target:self action:@selector(youraction)]; self.navigationitem.leftbarbuttonitem = secondbutton;
Comments
Post a Comment