0
A
回答
3
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.2];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:yourView cache:YES];
[yourView changeSomethingToThePositionOrWhatever];
[UIView commitAnimations];
2
[UIView beginAnimations:@"" context:nil];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIView setAnimationDuration:1.0];
// Make your changes
// show and hide views
[UIView commitAnimations];
相關問題
- 1. 帶動畫切換視圖UIViewAnimationTransitionCurlUp
- 2. 如何動畫視圖?
- 3. 如何動畫PNG圖像
- 4. 爲圖像視圖設置的動畫
- 5. Android動畫垂直圖像視圖
- 6. Textview動畫被圖像視圖裁剪
- 7. 在圖像視圖中創建動畫
- 8. 如何實現像UIActivityIndicatorView一樣的自動動畫視圖?
- 9. Swift:如何添加和動畫圖像視圖內嵌標籤?
- 10. 如何爲動畫圖像視圖設置onclick監聽器
- 11. 如何使用圖像視圖運行動畫?
- 12. 如何在動畫後從超級視圖中移除圖像
- 13. 如何在視圖背景中動畫圖像
- 14. Android Studio如何動畫移動視圖?
- 15. 動畫視圖
- 16. 圖像動畫像
- 17. 如何使UIViewAnimationTransitionCurlUp反向?
- 18. 動畫圖像
- 19. 動畫圖像
- 20. 的UIImageView動畫和視網膜圖像
- 21. 如何從另一個視圖背面動畫滾動視圖
- 22. 在圖像視圖中播放動畫GIF圖像文件
- 23. 如何像文字框一樣動畫文字視圖?
- 24. 如何製作視圖動畫像皺紙
- 25. 如何在視頻中爲圖像添加動畫
- 26. 如何用UIViewAnimationTransitionCurlUp動畫自定義不規則的奇怪形狀的UIButton?
- 27. 如何在滾動時重畫視圖?
- 28. LayoutAnimation:如何不動畫輸入視圖?
- 29. 如何動畫視圖的屬性
- 30. 如何檢測該視圖是動畫?