English 中文(简体)
Modal ViewControllers之间的过渡
原标题:Animated Transition between two Modal ViewControllers

I m trying to switch between two different active Modal View Controllers and trying for a smooth animation. Ideally I would like to have the animation look just like the new Modal View is becoming a Modal View over the current Modal View.

为了在我的申请中保持一致,我只需要限制在任何特定时间展示的穆达尔观点主计长的一层。

Currently I just have the existing Modal View dismiss with no animation and then animate the next Modal View over the RootController, but this doesn t look nice.

增 编

最佳回答

你们只能介绍第二位模式,即控制人员首先使用默认的过渡。 就像你的第二个模式看法一样,这种看法与你的第一个模式看法一样,正在分配和初步形成。 如果是这样的话,考虑重新制定你的守则,以便你有第一个示范观点控制员来介绍第二位模式观点控制员。 这样做将显示你所希望的另一方。

如果你需要把两种模式的控制器都放在同一个根基的控制器上,那么你可能会想建立一种代表方法。 这将把第一种模式观点控制器的信息传递给提出这种信息的基本观点控制器,同时提及第一种模式观点控制器。 其次,用这一提法来说明第一种模式观点控制器,以介绍第2个模式观点控制器。

我肯定地建议了前一种解决办法,因为它在逻辑上更加清楚,没有机会采用保留周期。

针对您的澄清:

两者之间的过渡尝试:

In your ModalViewControllerOne instance that is already displayed from a previous session:

self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self dismissModalViewControllerAnimated:YES];

根基

ModalViewControllerTwo *modalViewControllerTwo = [[ModalViewControllerTwo alloc] init];
modalViewControllerTwo.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[rootViewController presentModalViewController:modalViewControllerTwo animated:YES];

The idea of this is to cross-dissolve the first modal view controller back to the root view controller, then immediately cross-dissolve the new modal view controller back onto the screen.

如果只看透镜之间的不同观点,那么你可以不是两个观点控制器,而是有一位有逻辑看法的控制器,因为这样简单地把一种观点推向另一个观点,取决于在意见交换时是否使用过激动。

问题回答

暂无回答




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

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

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

热门标签