【发布时间】:2011-11-09 05:08:29
【问题描述】:
我正在开发一个 iPad 应用程序。我有一个带有两个按钮的警告框,“YES”和“NO”。
alert=[[UIAlertView alloc] initWithTitle:@"Confirmation!"
message:@"Would you like to continue placing the order ?"
delegate:self
cancelButtonTitle:@"YES"
otherButtonTitles:@"NO", nil];
alert.tag=100;
[alert show];
[alert release];
在警告框中,“是”按钮是暗的,“否”是突出显示的,但我想要相反。有没有办法做到这一点?
【问题讨论】:
-
你不能只切换YES和NO。还是你想保住他们的位置?
-
但是我已经使用了大约 30 个地方,并且在“是/否”按钮上添加了功能,所以我需要更改所有功能
标签: objective-c ios cocoa-touch uibutton uialertview