I have an issue with UIAlertView.
In my AppDelegate I check the reachability of the application: If it is not reachable I call the alert from Utils class.
- (void)reachabilityChanged:(NSNotification *)note
{
Reachability* currentReachabilityObject = [note object];
NSParameterAssert([currentReachabilityObject isKindOfClass:[Reachability class]]);
NetworkStatus status = [currentReachabilityObject currentReachabilityStatus];
if (status == NotReachable)
{
[Utils showAlert:@"NotReachableNetwork") title:@"Error")];
}
}
And if I turn on/turn off Wi-Fi two-three times I get three alerts. But I want to show only one.
Please tell me how to check is there any alerts on the screen from AppDelegate.