【问题标题】:when uiactionsheet show,click button of uiactionsheet,uiviewcontroller not support rotateuiactionsheet显示时,点击uiactionsheet按钮,uiviewcontroller不支持旋转
【发布时间】:2013-11-01 10:07:05
【问题描述】:

当我在视图控制器中使用UIActionSheet时,我的视图控制器支持四个方向,我创建了一个UIActionSheet,并显示UIActionSheet。当我触摸UIActionSheet 的按钮时,UIActionSheet 关闭,然后旋转我的 iPhone,我的视图控件不支持旋转。不执行rotate的委托,如:

- (BOOL)shouldAutorotate
{
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
}

【问题讨论】:

    标签: ios iphone objective-c uiactionsheet autorotate


    【解决方案1】:

    您必须从构建设置中设置方向...参见 xcode 5 的图像。

    【讨论】:

    • 感谢您的回答 Pravin,我设置的设备方向包括三个方向:纵向、横向左侧、横向右侧。在 UIActionSheet 显示之前,应用可以自动旋转。在 UIActionSheet 显示之后,应用不能自动旋转。
    猜你喜欢
    • 2012-08-19
    • 1970-01-01
    • 2014-04-25
    • 2013-07-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-11
    相关资源
    最近更新 更多