I added button on navigation ba开发者_如何转开发r.
When am navigating from rootviewcontroller to detailedviewcontroller
and getting back from detailedviewcontroller to rootviewcontroller.
those button which are on navigation bar removed and added to view. That is back to navigation bar
Please help me out.
Thanks in advance
Instead of adding the buttons on viewDidLoad, allocate them during the viewDidLoad and add them on viewDidAppear. This should help putting them up every time the view appears (for any reason).
精彩评论