我想要使UIAlertView具有两个按钮相同的两种颜色。我不希望它有一个取消按钮:UIAlertView显示两个按钮是相同的颜色
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Place Call"
message:@"Would you like to call this contact's Home or Cell phone?"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"Cell",@"Home",nil];
但这并没有把戏。 “单元格”按钮像蓝色,“主页”按钮像灰色。
原因是因为主页按钮是默认按钮。我现在不想改变这种情况,_defaultButton ivar是私人的。 – zaph 2011-06-12 03:53:16