0
默认情况下,适用于iPhone的横向模式下的UIActionSheet
采用屏幕宽度(480)。更改UIActionSheet宽度
我试图尽量减少宽度。我们如何改变宽度并且苹果是否会接受这种行为?
全码:
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)];
我尝试设置UIAction表单的边界。 [actionSheet setBounds:CGRectMake(0,0,200,320)]; – Bharathi
actionSheet = [[UIActionSheet的alloc] initWithTitle:@ “\ n \ n \ n \ n \ n \ n \ n \ n \ n \ n \ n” 个 委托:自 cancelButtonTitle:无 destructiveButtonTitle:无 otherButtonTitles:零,零]。 actionSheet.actionSheetStyle = UIActionSheetStyleBlackOpaque; actionSheet.delegate = self; [actionSheet showInView:self.view]; [actionSheet setBounds:CGRectMake(0,0,200,320)]; – Bharathi
您必须阅读[this](http://stackoverflow.com/a/1860168/932011)您可以使用[UIView](https://github.com/homeyer/CustomUIActionSheet)使用uiactionsheet。您可以创建一个像动作表一样滑动的自定义视图 – akk