UIActionSheet はあなたが探しているものです。
開始するためのコード例を次に示します。
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:@"Save photo?" delegate:self cancelButtonTitle:@"No" destructiveButtonTitle:@"Yes" otherButtonTitles:nil];
[actionSheet showInView:self.view];
[actionSheet release];
これは、下からアクション シートにスライドします。ボタンが2つ付いています。はいといいえ。
ユーザーが任意のボタンを選択すると、actionSheet:didDismissWithButtonIndex:
メソッドが呼び出されます
-(void) actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex{
//your code here
}
コントローラー クラスは < UIActionSheetDelegate > プロトコルにサブスクライブする必要があります
お役に立てれば!