【发布时间】:2011-03-02 06:52:30
【问题描述】:
我正在使用 Sparrow 框架,并且我正在强制我的应用程序仅处于横向。我的应用程序中有一个按钮,单击它会打开 UIAlertView。但是,如果我旋转(将方向从横向更改为横向左侧(意味着主页按钮位于右侧或左侧))并单击按钮以打开 UIAlertView - 它会打开它但颠倒了! 我该如何解决?
【问题讨论】:
标签: iphone ipad orientation screen-orientation
我正在使用 Sparrow 框架,并且我正在强制我的应用程序仅处于横向。我的应用程序中有一个按钮,单击它会打开 UIAlertView。但是,如果我旋转(将方向从横向更改为横向左侧(意味着主页按钮位于右侧或左侧))并单击按钮以打开 UIAlertView - 它会打开它但颠倒了! 我该如何解决?
【问题讨论】:
标签: iphone ipad orientation screen-orientation
用
固定[[UIApplication sharedApplication] setStatusBarOrientation: [UIDevice currentDevice].orientation animated: NO ];
在
-(void)orientationDetected:(UIEvent *)event
【讨论】: