I have this code:
//SHOW ALERT
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Actualizado"
message:@"Se ha actualizado todo" delegate:self
cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alert show];
and this
- (void)alertView:(UIAlertView *)alert
clickedButtonAtIndex:(NSInteger)buttonIndex {
NSLog(@"ALgo"); }
and got the following error:
-[__NSCFType alertView:clickedButtonAtIndex:]:
unrecognized selector sent to instance 0xdc559a0
Help please.
Thanks
Looks like you might be releasing the object or view that handles the
alertView:clickedButtonAtIndex:selector (the delegate). Make sure you keep it until yourUIAlertViewhas been dealt with.