0
A
回答
1
退房的UIViewController這些方法:
// Notifies when rotation begins, reaches halfway point and ends.
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation;
// Faster one-part variant, called from within a rotating animation block, for additional animations during rotation.
// A subclass may override this method, or the two-part variants below, but not both.
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);
// Slower two-part variant, called from within a rotating animation block, for additional animations during rotation.
// A subclass may override these methods, or the one-part variant above, but not both.
- (void)willAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;
- (void)didAnimateFirstHalfOfRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation; // The rotating header and footer views are offscreen.
- (void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration; // A this point, our view orientation is set to the new orientation.
享受
1
有許多在UIViewController中的事件被旋轉時引發的。旋轉之前的以下兩個觸發器:
- (void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
「在用戶界面開始旋轉之前發送到視圖控制器。
- (void) willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
「在執行一步用戶界面旋轉之前發送到視圖控制器。」
相關問題
- 1. iPhone:旋轉後沒有事件
- 2. 檢測iPhone旋轉旋轉?
- 3. 當iphone旋轉時檢測
- 4. iPhone編碼 - 如何添加旋轉到觸摸事件?
- 5. iphone:如何旋轉帶觸摸事件的矩形圖像?
- 6. 旋轉UIView iPhone
- 7. Iphone旋轉
- 8. 如何攔截iPhone旋轉
- 9. 當iPhone旋轉時沒有按預期行事
- 10. iPhone旋轉不會旋轉的UIWebView
- 11. 當iPad/iPhone旋轉時旋轉子視圖
- 12. 雲旋轉木馬和iPad/iPhone的觸摸事件
- 13. iPhone力量旋轉
- 14. iPhone旋轉問題
- 15. iPhone旋轉視頻
- 16. 旋轉iPhone/iPad的
- 17. iphone的UIImageView旋轉
- 18. Javascript旋轉 - 如何逆時針旋轉?
- 19. iPhone旋轉時按鈕消失
- 20. 旋轉設備時隱藏UITabBar iPhone
- 21. 旋轉時防止iPhone縮放
- 22. 旋轉時黑色邊框角落iPhone
- 23. 如何在其他零件旋轉時停止旋轉物體?
- 24. 轉換iphone到iPad,但屏幕不會自動旋轉,同時旋轉ipad
- 25. iOS5,iOS6,旋轉,任意觸發事件
- 26. Three.js MouseUp事件觸發旋轉
- 27. JQuery UI旋轉標籤和事件
- 28. 抓flickity旋轉木馬點擊事件
- 29. UISplitView未收到旋轉事件
- 30. 基於觸摸事件旋轉對象
非常感謝您! – 2010-12-19 19:21:19