Closed remotewhiteboard closed 6 years ago
EHPlainAlert * ehAlert = [[EHPlainAlert alloc] initWithTitle:@"Hmm..." message:@"Tap for information" type:ViewAlertInfo];
ehAlert.action = ^{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://github.com/josshad/EHPlainAlert"]];
};
ehAlert.messageColor = [UIColor blueColor];
ehAlert.iconImage = nil;
[ehAlert show];
This example will open safari on tap.
Is there a way to detect if they pressed on the alert, and then send them somewhere?