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:就像一本圖畫書,與removeFromSuperView
- 2. 圖像幀(iPhone)的動畫片段
- 3. iphone中的動畫圖像層
- 4. 來自圖像集的iphone動畫
- 5. 動畫GIF圖像作爲iPhone的啓動畫面
- 6. 圖像動畫像
- 7. 動畫圖像
- 8. 動畫圖像
- 9. iPhone視圖移動動畫
- 10. 如何在iPhone中啓動和停止圖像動畫
- 11. Xcode,iphone - 使圖像動畫在特定方向移動
- 12. iPhone:與核心動畫
- 13. Iphone連續動畫與setAnimationDelay
- 14. 在UIWebView中動畫圖像
- 15. 動畫與cocos2d中的圖像
- 16. QML閃爍與圖像上的動畫
- 17. 三維動畫與PNG圖像
- 18. iphone uipickerview與圖像
- 19. 動畫圖像wpf
- 20. 圖像不動畫
- 21. J2me動畫圖像
- 22. iOS圖像動畫
- 23. Android圖像動畫
- 24. jquery動畫圖像
- 25. 動畫圖像js
- 26. Android:動畫圖像?
- 27. 動畫SVG圖像
- 28. UIButton圖像動畫
- 29. iphone圖像變化與運動
- 30. iPhone多子視圖動畫
對不起,給我一個代碼的問題一般不歡迎在這裏。你必須嘗試自己做一些事情,並詢問你在這個過程中遇到的具體問題... – Vladimir 2010-10-21 10:32:07