Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.799 kb
#import "UIAlertView+mxcl.h"
@implementation UIAlertView (mxcl)
+ (void)showAlertViewForError:(NSError *)error title:(NSString *)title
{
if (error) {
NSString *msg = [error localizedDescription];
if (error.localizedFailureReason) {
msg = [NSString stringWithFormat:@"%@. %@", msg, error.localizedFailureReason];
}
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title
message:msg
delegate:nil
cancelButtonTitle:@"That Sucks!"
otherButtonTitles:nil];
[alertView show];
[alertView release];
}
}
@end
Jump to Line
Something went wrong with that request. Please try again.