开发者

Problem with adding button to navigation bar.

开发者 https://www.devze.com 2023-03-24 06:10 出处:网络
I added button on navigation ba开发者_如何转开发r. When am navigating from rootviewcontroller to detailedviewcontroller

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消