このメッセージを再度表示する必要があるかどうかを尋ねるアラートにチェックボックスを追加する必要があります。ボタンやテキストフィールドがコントローラに追加されたが、どこにでもチェックボックスが表示されなかったさまざまな例が出てきた。 UIAlertViewはバージョン9よりも非推奨ですので、私はそれを使いたくありません。UIAlertControllerのチェックボックスを追加してください
UIAlertController* alert = [UIAlertController alertControllerWithTitle:nil message:@"Should I remind?" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *yesAction = [UIAlertAction actionWithTitle:@"YES" style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
[self goToAddReminderView];
}];
UIAlertAction *noAction = [UIAlertAction actionWithTitle:@"NO" style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) {
[self.navigationController popViewControllerAnimated:YES];
}];
[alert addAction:yesAction];
[alert addAction:noAction];
[self presentViewController:alert animated:YES completion:nil];
私は例を挙げるでしょう。
ネイティブではサポートされていません。 – hridayesh