我有一个带有 tabbarcontroller 的应用程序,有两个控制器,现在在一个控制器中,我以纵向模型显示 uiactionsheet:
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"" delegate:nil cancelButtonTitle:@"Cancel" 破坏性ButtonTitle:@"Del" otherButtonTitles:nil,nil];
actionSheet.actionSheetStyle = UIActionSheetStyleBlackTranslucent;
[actionSheet showInView:self.view];
actionSheet.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleBottomMargin;
[actionSheet release];
我发现当我将模式更改为横向时,它不起作用,因为它没有响应控制器委托:
-(void) willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 持续时间:(NSTimeInterval)duration
如果 actionsheet 没有显示,控制器可以更改为 Landscape,为什么?非常感谢你!!!