【发布时间】:2013-02-16 08:16:45
【问题描述】:
我读了很多关于这方面的文章。人们说当它的父级没有设置为自动旋转时它不会自动旋转。我尝试了一切,但没有运气。 我创建了一个基于视图的应用程序 (v4.2),并带有一个执行此操作的按钮:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:@"Destructive Button" otherButtonTitles:@"Other Button 1", nil];
actionSheet.actionSheetStyle = UIActionSheetStyleBlackOpaque;
[actionSheet showInView:self.view];
根控制器设置为自动旋转。 actionSheet 没有。请注意,当我旋转模拟器时,不会调用任何根控制器的方向方法。代表有问题吗?怎么了?
【问题讨论】:
-
尝试使用
showInTabbar或showFromBarButtonItem。showInView有时候有点傻。 -
不...相同,不旋转。
-
你找到解决这个问题的方法了吗?我也面临同样的问题。
标签: iphone orientation rotation uiactionsheet autorotate