I am trying to create a UIAlertView that has 3 options and no "cancel" button, but when I do this, it always styles "Button 3" as a cancel button. Is there any way to avoid this?
UIAlertView *alertView= [[UIAlertView alloc] initWithTitle:@"Select One" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:@"Button 1",@"Button 2", @"Button3", nil];
I did differently, passing cancelButtonTitle
argument as nil
.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title"
message:@"Message here"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"OK", nil];