在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. 自動旋轉關閉時獲取設備旋轉
- 2. 用旋轉設備關閉旋轉時的UIPopover
- 3. 360旋轉關閉設置
- 4. UIActionsheet上旋轉
- 5. 關閉UIActionSheet
- 6. 設備上的應用程序旋轉但旋轉選項已關閉
- 7. 默認設備旋轉關閉時,是否可以更改設備的方向?
- 8. 如何在設備旋轉時關閉ABNewPersonViewController的keyboad?
- 9. 設備旋轉時應用程序關閉
- 10. android設備旋轉
- 11. 當設備旋轉
- 12. 設備旋轉/旋轉計數
- 13. 不旋轉設備的頁面旋轉
- 14. IOS旋轉設備不旋轉動畫
- 15. 設備旋轉時旋轉相機
- 16. 當設備關閉
- 17. 旋轉活動關閉
- 18. 處理設備旋轉
- 19. iOS6設備旋轉限制
- 20. TSAlertView啓用設備旋轉
- 21. 安卓設備旋轉
- 22. CoreAnimation和設備旋轉
- 23. 關閉設備音量 - iOS設備
- 24. 當設備被鎖定,旋轉並重新鎖定時獲得強制關閉
- 25. 設備強制關閉
- 26. 打開/關閉Android設備
- 27. iOS當默認設備旋轉關閉時,是否可以更改設備的方向?
- 28. UIActionSheet不在橫向模式下旋轉?
- 29. 設備旋轉導致當前選項卡被重置
- 30. Dialog在屏幕旋轉時關閉android
您可以在此也 http://www.cocos2d-iphone.org/forum/topic/2588 – FAsttrack 2010-11-13 11:24:56