diff --git a/Lemacs/Utilities/NSError+LEPresenting.h b/Lemacs/Utilities/NSError+LEPresenting.h index aad2d3d..ff55db7 100644 --- a/Lemacs/Utilities/NSError+LEPresenting.h +++ b/Lemacs/Utilities/NSError+LEPresenting.h @@ -7,6 +7,6 @@ // // This convenient method simply presents an alert displaying the localized error. -@interface NSError (LEPresenting) +@interface NSError (LEPresenting) - (IBAction)present; @end diff --git a/Lemacs/Utilities/NSError+LEPresenting.m b/Lemacs/Utilities/NSError+LEPresenting.m index f8cdfff..e29dedc 100644 --- a/Lemacs/Utilities/NSError+LEPresenting.m +++ b/Lemacs/Utilities/NSError+LEPresenting.m @@ -10,14 +10,6 @@ @implementation NSError (LEPresenting) -#pragma mark - UIAlertViewDelegate - -- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex; -{ - -} - - #pragma mark - API - (IBAction)present; @@ -41,7 +33,7 @@ - (IBAction)present; NSString *localizedCancelButtonTitle = NSLocalizedString(@"OK", @"Generic error button title"); - UIAlertView *errorAlert = [[UIAlertView alloc] initWithTitle:localizedTitle message:localizedMessage delegate:self cancelButtonTitle:localizedCancelButtonTitle otherButtonTitles:nil]; + UIAlertView *errorAlert = [[UIAlertView alloc] initWithTitle:localizedTitle message:localizedMessage delegate:nil cancelButtonTitle:localizedCancelButtonTitle otherButtonTitles:nil]; [errorAlert show]; }