【问题标题】:iPhone/iPad landscape orientation and UIAlertViewiPhone/iPad 横向和 UIAlertView
【发布时间】:2011-03-02 06:52:30
【问题描述】:

我正在使用 Sparrow 框架,并且我正在强制我的应用程序仅处于横向。我的应用程序中有一个按钮,单击它会打开 UIAlertView。但是,如果我旋转(将方向从横向更改为横向左侧(意味着主页按钮位于右侧或左侧))并单击按钮以打开 UIAlertView - 它会打开它但颠倒了! 我该如何解决?

【问题讨论】:

    标签: iphone ipad orientation screen-orientation


    【解决方案1】:

    用

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

    在

    -(void)orientationDetected:(UIEvent *)event
    

    【讨论】:

    • 键盘以某种方式移入。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-11
    • 2011-02-08
    相关资源
    最近更新 更多