Мне нужно добавить флажок в предупреждении, если я должен снова показать это сообщение. Я наткнулся на различные примеры, в которых в контроллере была добавлена кнопка или текстовое поле, но нигде не видно флажка. 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];
Я бы извинился за пример.
не поддерживается изначально. необходимо создать свой собственный ui – hridayesh