English 中文(简体)
popToRootView.Controller Animated don tended Navigation 项目
原标题:popToRootViewControllerAnimated doesn t modify attached navigationItem

My UIViewController calls a function on my rootViewController which then called popToRootViewControllerAnimated to return the view to the rootController. This all works - great!

不幸的是,UINavigationItem(顶端的托olbar)似乎对刚刚被拆除的根子“Controller”和“IDViewController”进行了 m弄。

What do I need to do? What have I done wrong?

最佳回答

航道并不记得对其作出的改动,因此,当你推举新的控制器时,导航条被改动,以赋予新的观察控制器名称,但它确实储存了以前的看法控制器所拥有的东西。

You will need to recreate the items in the toolbar each time you come back to the view controller that has custom items.

您可以在<条码>上填写:view WillAppear,而不是在<条码>上填写。 我完全可以回顾一下,但你应当重新调整对导航工具禁运的海关控制,因为当一名新的观察控制员被推走时,这种控制不会得到维护。

问题回答

It seems that calling popToRootViewController from the rootViewController messes things up. TO rectify this I called the following from within the calling UIViewController

[self.navigationController popViewControllerAnimated:YES];




相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签