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. c动画幻灯片幻灯片#
- 4. jQuery幻灯片与图像之间的过渡和Flash动画
- 5. 图片幻灯片中的过渡html5
- 6. 如何添加幻灯片放映的过渡?
- 7. 幻灯片与ffmpeg幻灯片过渡从右到左
- 8. 添加在幻灯片过渡效果
- 9. 过渡效果 - 淡入到幻灯片
- 10. 幻灯片过渡与空白点
- 11. 幻灯片的左,右过渡
- 12. 如何让幻灯片自行滑动?
- 13. 如何制作幻灯片动画?
- 14. 幻灯片动画故障
- 15. jQuery动画幻灯片左
- 16. ImageView幻灯片动画
- 17. 幻灯片窗口动画
- 18. Angular JS幻灯片动画
- 19. 幻灯片内容动画
- 20. 放映幻灯片内幻灯片
- 21. Android - 幻灯片动画滚动片段
- 22. 传送带褪色幻灯片过渡动画过程中导致空白
- 23. 点击跳过幻灯片幻灯片
- 24. HTML5画布幻灯片放映问题
- 25. jquery图片库幻灯片动画
- 26. 这款Flash动画如何推进闪光幻灯片中的幻灯片?
- 27. 如何过渡到特定的幻灯片,JQuery cicle plugn
- 28. 如何在幻灯片中优雅地过渡图像?
- 29. Android活动转换幻灯片动画
- 30. 幻灯片和滑动与动画easing
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