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];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With