Cocoa touch 更改视图按钮按下的颜色

Cocoa touch 更改视图按钮按下的颜色,cocoa-touch,button,background,uialertview,Cocoa Touch,Button,Background,Uialertview,我到处寻找这个问题的答案,但找不到 我有一个警告视图: UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Text Field empty" message:@"You didn't enter anything in the username field." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; 当用户将手指放在按钮上时,按钮的背景颜色会

我到处寻找这个问题的答案,但找不到

我有一个警告视图:

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Text Field empty" message:@"You didn't enter anything in the username field." delegate:self cancelButtonTitle:@"OK"   otherButtonTitles:nil];
当用户将手指放在按钮上时,按钮的背景颜色会发生一些变化,让他们知道正在按下按钮

有没有办法定制这种颜色


谢谢

No.
UIAlertView
类不会暴露按钮,因此如果没有可能在将来的iOS更新中被破坏的丑陋的黑客攻击,就无法自定义按钮。哦,这太糟糕了。谢谢你的快速回复。