Skip to content

Instantly share code, notes, and snippets.

@Marlunes
Created July 4, 2013 06:53
Show Gist options
  • Save Marlunes/5925455 to your computer and use it in GitHub Desktop.
Save Marlunes/5925455 to your computer and use it in GitHub Desktop.
ALERT MESSAGE
/*
To call:
[self showErrorWithTitle:@"Error" withMessage:@"Your Device Sucks!"];
*/
- (void)showErrorWithTitle:(NSString *)title withMessage:(NSString *)message{
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:title message:message delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[alert show];
[alert resignFirstResponder];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment