0
A
回答
0
[[self navigationController] presentModalViewController:modalViewController animated:YES];
和隐藏像这样:
[self.navigationController dismissModalViewControllerAnimated:YES];
+0
是的,我也使用类似的东西,但无法找到让它从上到下移动的方式 – user1035877 2012-03-15 08:17:11
+0
看到这个链接.. http://stackoverflow.com/questions/237310 /何灿的i-变化的动画风格对的一模态-的UIViewController – 2012-03-15 08:19:01
0
你可以使用的Core Animation,您使用的是什么样的对象呢?
基本上,你这样做的目的是淡化:
[[objectName animator] setOpacity: 1];
记住,你首先需要在动画开始之前,设置不透明度为0等。 希望这是你想要的。
0
您将视图框设置为离开屏幕的起始位置,然后使用某些动画将您的框架放置到位。
CGRect originalFrame = [detailsView frame];
CGRect offscreenFrame = originalFrame;
offscreenFrame.origin.y -= offscreenFrame.size.height;
detailsView.frame = offscreenFrame; //Send the frame above screen
//Add view here if necessary to an unscrew view
// [aSuperView addSubview:detailsView];
[UIView beginAnimations:@"BringIn" context:nil];
[UIView setAnimationDuration:.3];
[UIView setAnimationDelegate:self];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
detailsView.frame = originalFrame
[UIView commitAnimations];
2
尝试修好这... 添加QuartzCore框架
#import <QuartzCore/QuartzCore.h>
CATransition *transDown=[CATransition animation];
[transDown setDuration:0.5];
[transDown setType:kCATransitionPush];
[transDown setSubtype:kCATransitionFromBottom];
[transDown setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
[Boottom_view.layer addAnimation:transDown forKey:nil];
相关问题
- 1. 幻灯片放大动画
- 2. 幻灯片放大动画
- 3. 片段幻灯片过渡不如活动过渡平滑
- 4. c动画幻灯片幻灯片#
- 5. jQuery Mobile的幻灯片过渡动画跳动
- 6. 幻灯片动画
- 7. jQuery幻灯片与图像之间的过渡和Flash动画
- 8. 图片幻灯片中的过渡html5
- 9. 如何添加幻灯片放映的过渡?
- 10. 幻灯片与ffmpeg幻灯片过渡从右到左
- 11. 放映幻灯片和动画iOS
- 12. 在iOS中动画幻灯片放映
- 13. 自动播放(幻灯片)灯箱画廊在放大灯箱?
- 14. 幻灯片放映幻灯片,其他幻灯片放映幻灯片
- 15. 背景图像幻灯片机过渡
- 16. 过渡效果 - 淡入到幻灯片
- 17. css3过渡幻灯片到左边
- 18. 幻灯片过渡与空白点
- 19. 幻灯片的左,右过渡
- 20. CSS3幻灯片页面过渡
- 21. 添加在幻灯片过渡效果
- 22. 如何让幻灯片自行滑动?
- 23. 如何制作幻灯片动画?
- 24. 帆布幻灯片动画
- 25. 幻灯片动画故障
- 26. JQuery幻灯片动画+ CSS
- 27. Android动画幻灯片
- 28. Angular JS幻灯片动画
- 29. Jquery 1.9.1幻灯片动画
- 30. ImageView幻灯片动画
http://stackoverflow.com/questions/6605959/implement-custom-animation-to-present-modal-view- from-specified-view-on-ipad – 2012-03-15 08:01:21
http://stackoverflow.com/questions/7188584/complete-list-of-transitions-you-can-do-between-views-on-iphone-ipad/7328633#7328633 – chikuba 2012-03-15 08:12:03