在portaint Actionsheet在tabbar中顯示。在風景 - 在窗口。我希望在旋轉之前從tabbar移除UIActionSheet,以便在旋轉顯示之後進行旋轉。 裏面– willRotateToInterfaceOrientation:duration
解僱行動表不工作。設備旋轉前關閉UIActionSheet?
1
A
回答
4
您可以使用NSNotification。收藏此通知在你的viewDidLoad文件,你預訂購得到通知時,方向是不會改變:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(OrientationChanged:)
name:@"UIDeviceOrientationDidChangeNotification"
object:nil];
...添加這個方法:
-(void)OrientationChanged
{
}
0
我我之前解僱和顯示後,然後UIActionSheet中間被取代;
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
[APP.validSave dismissWithClickedButtonIndex:1 animated:NO];
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
[APP.validSave showInView:APP.navController.view];
}
相關問題
- 1. 用旋轉設備關閉旋轉時的UIPopover
- 2. 自動旋轉關閉時獲取設備旋轉
- 3. 360旋轉關閉設置
- 4. 默認設備旋轉關閉時,是否可以更改設備的方向?
- 5. android:在設備旋轉時關閉opengl ES上下文切換
- 6. android設備旋轉
- 7. 當設備旋轉
- 8. 設備旋轉/旋轉計數
- 9. 設備旋轉時旋轉相機
- 10. 當設備關閉
- 11. 處理設備旋轉
- 12. CoreAnimation和設備旋轉
- 13. TSAlertView啓用設備旋轉
- 14. UIActionSheet不在橫向模式下旋轉?
- 15. 設備旋轉時提供自己的旋轉動畫
- 16. 如何在Android上旋轉設備旋轉視頻?
- 17. 關閉Qt設計器中的旋轉盒
- 18. 關閉從UIWebView打開的UIActionSheet
- 19. 關於使用MTLabel設備旋轉的麻煩
- 20. MvvmCross - 設備旋轉時發生崩潰
- 21. 停止在移動設備上旋轉
- 22. UIToolbar高度上設備旋轉
- 23. 非活動區域設備旋轉
- 24. Android - 在AVD中旋轉測試設備
- 25. 設備旋轉時的新視圖
- 26. 旋轉設備時隱藏UITabBar iPhone
- 27. UICollectionViewCell調整設備旋轉大小
- 28. 固定方向的設備旋轉Android
- 29. 詳細的UIViewController不旋轉設備
- 30. 聯想A3000如何讓設備旋轉?
您可以在此也 http://www.cocos2d-iphone.org/forum/topic/2588 – FAsttrack 2010-11-13 11:24:56