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 닐 : nil, nil]; 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)를 사용하여 사용자 인터페이스 시트를 사용할 수 있습니다. 액션 시트처럼 위로 움직이는 커스텀 뷰를 생성 할 수 있습니다. – akk