English 中文(简体)
导航控制器使用什么方法来触发?
原标题:what method does navigationcontroller fire

我有1名导航管理员和3名观点控制员。 VC1推动VC2和VC2使用Sus ModalViewController展示第3版VC。

  1. When VC2 uses presentModalViewController to show VC3, is the VC3 actually pushed on the navigationcontroller stack?
  2. viewdidload of VC3 is called only 1st time. My goal is to show VC3 with a new imageView everytime. Where do I add the code to do that? viewdidappear and viewwillappear of VC3 is not fired either
问题回答
  1. 我了解到VC3将作为VC2的视图层次结构而不是导航控制器。要将其添加到导航控制器的视图层次结构中,您需要将VC3推到其中。

  2. viewDidLoad 应该只被调用一次,除非由于低内存而从内存中卸载了 Nib 文件本身。文档说明 viewWillAppear 和 viewDidAppear 应该在 VC3 上被调用,所以我不知道它们为什么没有被调用。

更新

我刚刚测试了一下,VC3确实调用了-(void)viewDidAppear:(BOOL)animated。请确保选择器的签名是正确的。





相关问题
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风格的解决办法,只是一个简单的袖珍流程......

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

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

热门标签