Created
July 4, 2013 06:53
-
-
Save Marlunes/5925455 to your computer and use it in GitHub Desktop.
ALERT MESSAGE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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