开发者

Problem with adding button to navigation bar.

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜