/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Alertview botones confirmacion UIAlertView *alerta = [[UIAlertView alloc] initWithTitle:@"Calificacion" message:@"Por favor, puede calificar nuestra aplicacion?" delegate:self cancelButtonTitle:[self noButtonTitle] otherButtonTitles:[ self yesButtonTitle], nil]; [alerta setAlertViewStyle:UIAlertViewStyleDefault]; [alerta show]; // Metodo para saber que boton se ha pulsado -(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ NSString *buttonTitle = [alertView buttonTitleAtIndex:buttonIndex]; if ([buttonTitle isEqualToString:[self yesButtonTitle]]) { NSLog(@"El usuario ha presionado el boton SI!"); } else if ([buttonTitle isEqualToString:[self noButtonTitle]]){ NSLog(@"El usuario ha presionado el boton NO"); } }