[英]how to implement the foldout animation view like the original iPhone google map app?
all coder , I see the foldout animation view in the original iPhone google map app, I want the same effect in my view , but I have not find solution ... 所有编码器,我都在原始的iPhone google map应用程序中看到了折叠动画视图,我希望在视图中具有相同的效果,但是我没有找到解决方法...
how to do the same animation via iPhone sdk ? 如何通过iPhone SDK制作相同的动画? any tip will be much appreciated... 任何提示将不胜感激...
thanks... 谢谢...
iRobin 罗宾
I believe that what you're looking for is UIViewAnimationTransitionCurlUp
and UIViewAnimationTransitionCurlDown
, two transition effects that can be applied when switching views. 我相信您正在寻找的是UIViewAnimationTransitionCurlUp
和UIViewAnimationTransitionCurlDown
,这两种切换效果可以在切换视图时应用。 To produce the effect, you could use code like the following: 要产生效果,可以使用如下代码:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:CURLANIMATIONDURATIONFORSWITCHINGVIEWS];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:self.view cache:YES];
[newlyVisibleController viewWillAppear:YES];
[previouslyVisibleController viewWillDisappear:YES];
[previouslyVisibleController.view removeFromSuperview];
[self.view addSubview:newlyVisibleController.view];
[previouslyVisibleController viewDidDisappear:YES];
[newlyVisibleController viewDidAppear:YES];
[UIView commitAnimations];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.