0
UIAlertAction のチェックボックス、つまりUibuttonとuilabelを1つのオプションに追加し、UIAlertControllerの別のUIAlertActionのボタンのみを追加したいとします。UIAlertControllerのチェックボックスと目的のcのアクションシート
達成方法を教えてください。
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"My Alert"
message:@"This is an action sheet."
preferredStyle:UIAlertControllerStyleActionSheet]; // 1
UIAlertAction *firstAction = [UIAlertAction actionWithTitle:@"one"
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
NSLog(@"You pressed button one");
}]; // 2
UIAlertAction *secondAction = [UIAlertAction actionWithTitle:@"two"
style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
NSLog(@"You pressed button two");
}]; // 3
[alert addAction:firstAction]; // 4
[alert addAction:secondAction]; // 5
の代わりに誰か他の人の答えをコピー(あなたがリンクを投稿しました場合でも)、単に重複として質問を閉じるために投票。 – rmaddy