默认情况UIActionSheet
下,iPhone 的横向模式采用屏幕宽度 (480)。
我试图最小化宽度。我们如何更改宽度,Apple 会接受这种行为吗?
完整代码:
actionSheet = [[UIActionSheet alloc] initWithTitle:@"\n\n\n\n\n\n\n\n\n\n\n" delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:nil,nil]; actionSheet.actionSheetStyle = UIActionSheetStyleBlackOpaque; actionSheet.delegate = self; [actionSheet showInView:self.view]; [actionSheet setBounds:CGRectMake(0 , 0, 200, 320)];