У меня есть эти строки коды:Изменить UIAlertController выбранного цвета кнопки
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:nil preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:cancelTitle style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) {
NSLog(@"cancel registration");
}];
[alertController addAction:cancelAction];
alertController.view.tintColor = [UIColor redColor];
Я хочу изменить кнопку отмены цвета при выборе. Как я могу это сделать? Пожалуйста, помогите.
ли проверить эту ссылку у http://stackoverflow.com/questions/24157694/change-button-title-color -in-uialertview – jithin
@jithin Я проверил эту ссылку, но при выборе кнопки tintColor будет изменен на цвет по умолчанию. Мой вопрос касается цвета выбранной кнопки. – Adela