2
다음은 제 구현입니다. 기본적으로 액션 시트와 선택기 뷰를 즉석에서 생성합니다. 문제는 선택한 항목이 표시되지 않음을 나타내는 표시기입니다. 이 라인이 누락처럼 보이는액션 시트 안의 선택기보기에 선택 표시기가 나타나지 않습니다.
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:title delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:nil];
actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
UIPickerView* picker = [[UIPickerView alloc] initWithFrame:CGRectMake(0,100, 320, 216)];
picker.dataSource = self;
picker.delegate = self;
[actionSheet addSubview:picker];
[actionSheet showInView:self.view];
[actionSheet setBounds:CGRectMake(0,0, 320, 411)];
, 나는 그것이 내가 잃어버린 간단한 것을 알고 있었다. – Jhorra