I have added an alertView to display an alert message to the user (see below)
-(void)connectionAlert {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"UIAlertView"
message:@"<Alert message>"
delegate:self
cancelButtonTitle:@"OK" otherButtonTitles: nil];
[alert show];
[alert release];
}
Which I am then calling from my viewController using [self connectionAlert];
everything works fine, but I am not sure if I should or should not add the <UIAlertViewDelegate>
protocol to my viewController interface.
Currently I have NOT added the protocol and everything seems to be working, is this because I am calling the UIAlertView via self? Should I really be adding the protocol anyways?
many thanks
gary