English 中文(简体)
iPad的viewWillAppear和presentModalViewController问题
原标题:iPad viewWillAppear and presentModalViewController problems

In the iPhone, I have a tableview, and touching the cells, I have one method calling presentModalViewController, and opening another view, with email and this kind of stuff. When the user press the cancel button, the viewWillAppear method in the previous view is called. So far, so good. But in the iPad, the viewWillAppear is only called the first time that the view appears, anyone knows if this is a bug or it s right? I tried to implement the

- (void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)animated{

没有成功。

Does anybody know how to fix this without doing any delegate method from scratch? Thanks in advance

问题回答

由于观察控制员提出的方式不一定完全掩盖了iPad的基本观点,因此,当这些模式的观察控制员被解职时,观察WillAppear方法不会火灾。 我依靠代表的方法向原观点控制者宣布模式观察控制者的行动。 我认为,这是最好的前进道路。

基于猜测,而非阅读、测试或任何有用的事情,但因此不受保密协议的限制...

当你presentModalViewController时,viewWillDisappear是否被调用?可能它认为模态视图没有完全遮盖原始视图,因此(不像iPhone),两者同时存在?

很有可能是个漏洞,我会在苹果的这里提交一个漏洞报告。





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

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

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

热门标签