iphone - Adding Info Button to UITabBarController's More Screen -


i'm trying add info button more screen uitabbarcontroller generates when have more 5 tabs. code i'm using this:

// add info button more controller uibutton *infobutton = [uibutton buttonwithtype:uibuttontypeinfolight]; uibarbuttonitem *infobarbutton = [[[uibarbuttonitem alloc] initwithcustomview:infobutton] autorelease]; tabbarcontroller.morenavigationcontroller.navigationitem.leftbarbuttonitem = infobarbutton; 

this sort of thing seems work fine other uiviewcontrollers, in case, code builds , runs fine, button never appears.

any idea might need changing work?

aha! needed access first item in morenavigationcontroller stack, rather morenavigationcontroller itself.

tabbarcontroller.morenavigationcontroller.topviewcontroller.navigationitem.leftbarbuttonitem = infobarbutton; 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -