【发布时间】:2015-10-26 11:53:26
【问题描述】:
我有这行代码:
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];
我想在选中时更改取消按钮的颜色。我怎样才能做到这一点? 请帮忙。
【问题讨论】:
-
@ jithin i检查了此链接,但选择按钮时,TintColor会更改为默认颜色。我的问题是关于所选按钮的颜色。
标签: ios objective-c swift uialertcontroller