2012-05-21 1 views
1

테이블보기가 있습니다. 사용자가 tableView의 셀을 클릭하면 UIAlertView와 UIActionSheet를 동시에 표시하려고합니다. AlertView는 ActionSheet 위에 표시되어야합니다. 그리고 사용자가 AlertView에서 "취소"버튼을 클릭하면 UIActionSheet와 UIAlertView가 동시에 사라집니다. 이것을 어떻게 할 수 있습니까?iPhone UIAlertView UIActionSheet tableView

답변

1

이 따르 -

UIActionSheet *actionSheetTitleFontStyle = [[UIActionSheet alloc] initWithTitle:@"\n\n\n\n\n\n\n\n" delegate:self cancelButtonTitle:@"ok"  destructiveButtonTitle:nil otherButtonTitles:nil]; 
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello" message:@"Hello" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil]; 
[actionSheetTitleFontStyle addSubview:alert]; 
[alert show]; 

그것은 고마워 도움이 될 수 있습니다 :