ios - iPhone - quick Navigation bar question -


i have uinavigation bar in few of views without using uinavigationcontroller. dont use navigation controller push new views, load new views again have "static" uinavigationbar @ top.

so navigation bars show title of ever view user looking at, have no other function.

in of views have requirement have button, 3 views out of 10.

so wondering if possible me insert button states , goes previous screen these 3 views, have able insert button , detect when pressed.

can current set or need go , create view uinavigationcontroller , use push , pop views , somehow suppress button on 7 screens dont want display on?

edit:

i've tried following way:

uibarbuttonitem *backbutton = [[uibarbuttonitem alloc] initwithtitle:@"back" style:uibackbuttonitemstyleborder target:nil action:selector(myaction)]; [navitem setbackbarbuttonitem:backbutton]; //doesn't work [navitem setleftbarbuttonitem:backbutton]; //works lacks arrow style of button [backbutton release]; 

so can add button doesn't button, there way make button or should scratch , use uinavigationcontroller? , if how can suppress button when dont want one?

you can if correctly. add custom button navigation leftbarbuttonitem or backbarbuttonitem , give custom button press action. in button method can remove view , show previous view. said better way use normal uinavigationcontroller if app has navigation bar in screens.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -