objective c - UINavigationController: setting the title of the next UINavigationItem -


i having following issue:

i have uinavigationcontroller uinavigationbar changes title switch 1 view next. example, first view called root , next view called login. first time (and first time only) call [navigationcontroller pushviewcontroller:loginviewcontroller animated:yes], login view comes in , "login" title appears on nav bar after view has appeared. because set title in function called didshowviewcontroller. need call same function willshowviewcontroller. problem uinavigationitem new view controller has not been created yet cannot set title... how around issue?

thanks,

franck-

you should setting title of navigation item in view controller's viewdidload or loadview method, rather uinavigationcontroller delegate methods. setting title property of view controller after creating should trick, however.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -