Hello,
I have implemented an NSAlert but the delegate method didDissmissWithButton
is never called.
This code evokes the NSAlert:
NSString *title = [NSString stringWithFormat:@"Keine Internetverbindung"];
NSString *alertMessage = [NSString stringWithFormat:@"Es konnte keine Verbindung zu www.sip.de aufgebaut werden!"];
NSString *ok = [NSString stringWithFormat:@"Ok"];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title message:alertMessage delegate:self cancelButtonTitle:ok otherButtonTitles:nil];
[alert show];
[alert release];
and this is the NSAlert delegate method:
- (void)alertView:(UIAlertView *)alertView didDisMissWithButtonIndex:(NSInteger)buttonIndex{
exit(3);
}
The method is never called, what is my mistake?