2011-03-02 80 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