Every 10 min I synchronize my app with server, and when something wrong with server, I show UIAlertView.
NSString *alertTitle = @"Sync failed";
NSString *alertMessage = @"Something wrong with server"
UIAlertView *alertView = [[UIAlertView alloc]
initWithTitle:alertTitle
message:alertMessage
delegate:nil
cancelButtonTitle:NSLocalizedString(@"OK", @"OK button title")
otherButtonTitles:nil];
[alertView show];
[alertView release];
If to shoot down server and do not touch phone, in hour there will be 6 Alert Dialogs, and I supposed to close 6 AlertDialogs. How to fix that ? Can AlertView check if its already shown to user or something like that ? Thanks...