私はまったく新しいので、何を検索すればよいのか、それが何と呼ばれているのかわかりません。ボタンを押すと他のボタンが表示されるようにしてください。多くのアプリで見つけましたが、名前がわかりません..下に写真を添付しました。iOSアプリでこれを行うにはどうすればよいですか。

と呼ばれUIActionSheetます。
そして、ここに評価者の複雑な例があります:
UIActionSheet *actionSheet = [[UIActionSheet alloc] init] ;
actionSheet.title = @"Change pincode?";
actionSheet.delegate = self;
actionSheet.tag = kChangePincode;
[actionSheet addButtonWithTitle:@"Chacge pincode"];
[actionSheet addButtonWithTitle:@"Remove pin code"];
[actionSheet addButtonWithTitle:@"cancel"];
[actionSheet setCancelButtonIndex:(actionSheet.numberOfButtons - 1)];
[actionSheet showInView:self.view];
UIActionsheetを調べます。 このような追加を行います
// .h クラスで
@interface MyViewController : UIViewController <UIActionSheetDelegate> {
...
}
...
-(IBAction)showActionSheet:(id)sender;
@終わり
.m
-(IBAction)showActionSheet:(id)sender {
UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Title" delegate:self cancelButtonTitle:@"Cancel Button" destructiveButtonTitle:@"Destructive Button" otherButtonTitles:@"Other Button 1", @"Other Button 2", nil];
popupQuery.actionSheetStyle = UIActionSheetStyleBlackOpaque;
[popupQuery showInView:self.view];
[popupQuery release];
}
// Handle Delegates-------------
-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 0) {
self.label.text = @"Destructive Button Clicked";
} else if (buttonIndex == 1) {
self.label.text = @"Other Button 1 Clicked";
} else if (buttonIndex == 2) {
self.label.text = @"Other Button 2 Clicked";
} else if (buttonIndex == 3) {
self.label.text = @"Cancel Button Clicked";
}
/**
* OR use the following switch statement
*
*/
/*
switch (buttonIndex) {
case 0:
self.label.text = @"Destructive Button Clicked";
break;
case 1:
self.label.text = @"Other Button 1 Clicked";
break;
case 2:
self.label.text = @"Other Button 2 Clicked";
break;
case 3:
self.label.text = @"Cancel Button Clicked";
break;
}
*/
}