テーブルビューがあります。ユーザーがtableViewのいずれかのセルをクリックすると、UIAlertViewとUIActionSheetの両方を同時に表示したいと思います。AlertViewは、ActionSheetの上に表示されます。また、ユーザーがAlertViewの[キャンセル]ボタンをクリックすると、UIActionSheetとUIAlertViewの両方が同時に消えます。どうすればこれを達成できますか?
1 に答える
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];
それはあなたを助けるかもしれません.Thanks :)
于 2012-05-21T04:42:52.233 に答える