我读了很多关于那个。人们说当它的父级没有设置为自动旋转时它不会自动旋转。我尝试了一切,但没有运气。我使用执行此操作的按钮创建了基于视图的应用程序(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 没有。请注意,当我旋转模拟器时,不会调用任何根控制器的方向方法。代表有问题吗?怎么了?