2011-03-02 84 views
1

我使用Sparrow框架,也迫使我的應用程序只在橫向方向。我在我的應用程序中有一個按鈕,點擊打開UIAlertView。但是,如果我旋轉(將方向從說風景右改變爲風景左(意味着主頁按鈕位於右側或左側)),然後單擊按鈕以打開UIAlertView - 它會打開它,但會顛倒! 我該如何解決它?iPhone/iPad的橫向方向和UIAlertView

回答

4

-(void)orientationDetected:(UIEvent *)event 
+0

鍵盤修正了

[[UIApplication sharedApplication] setStatusBarOrientation: [UIDevice currentDevice].orientation animated: NO ]; 

在某種程度上被移位。 – 2012-08-07 13:28:58