0
A
回答
1
这是其在iOS系统中引入的新模块API 4.0 使用这个,如果你还没有在4.0
CABasicAnimation *theAnimation;
theAnimation=[CABasicAnimation animationWithKeyPath:@"transform.translation.x"];
theAnimation.duration=1;
theAnimation.repeatCount=2;
theAnimation.autoreverses=YES;
theAnimation.fromValue=[NSNumber numberWithFloat:0];
theAnimation.toValue=[NSNumber numberWithFloat:-60];
[view.layer addAnimation:theAnimation forKey:@"animateLayer"];
这段代码移动视图60个像素向左,然后回到它原来的位置 [请不要忘记投票,如果你发现这个答案有用:-)]
0
使用的UIView的过渡效果..
[UIView AnimateWithDuration: delay: options: animations: completion: ];
梅索德。 重复转换有一些很好的效果。
相关问题
- 1. 淡出图像动画在iphone
- 2. iPhone UIImageView与动画图像需要沿着路径移动
- 3. iPhone:就像一本图画书,与removeFromSuperView
- 4. 图像动画与声音
- 5. 来自图像集的iphone动画
- 6. 图像帧(iPhone)的动画片段
- 7. iphone中的动画图像层
- 8. 动画GIF图像作为iPhone的启动画面
- 9. iPhone - 创建动画像Xcode
- 10. iPhone视图移动动画
- 11. 图像动画像
- 12. 动画iphone tableviewCell带有两个图像的背景图像
- 13. Xcode,iphone - 使图像动画在特定方向移动
- 14. 如何在iPhone中启动和停止图像动画
- 15. 动画图像
- 16. 动画图像
- 17. iPhone:与核心动画
- 18. iphone开发:动画与NSTimer
- 19. Iphone连续动画与setAnimationDelay
- 20. iphone uipickerview与图像
- 21. 在UIWebView中动画图像
- 22. iphone图像变化与运动
- 23. QML闪烁与图像上的动画
- 24. jQuery动画循环与图像
- 25. 动画与cocos2d中的图像
- 26. 画布图像对象与style.left移动
- 27. 动画与多个背景图像
- 28. 安卓图像切换与动画
- 29. 三维动画与PNG图像
- 30. iPhone核心图形动画
对不起,给我一个代码的问题一般不欢迎在这里。你必须尝试自己做一些事情,并询问你在这个过程中遇到的具体问题... – Vladimir 2010-10-21 10:32:07