views:

30

answers:

1

I want to display a UIAlert to indicate to my users that something went wrong (maybe no Internet). I just need an OK button.

Thanks for the help :)

+2  A: 

Did you try looking in the documentation?

Dave DeLong
I did and I was a little confusedUIAlertView *startAlert = [[UIAlertView alloc] initWithTitle:@"title" message:@"string" delegate:nil cancelButtonTitle:@"Done" otherButtonTitles:@"Button2", nil];Can I leave out the otherButtonTitles?
Cocoa Dev
@orangecl4now Did you try it? Trying it should've taken about 30 seconds...
Dave DeLong