replace ugly block notation with clean typedef

This commit is contained in:
Lukas Spieß
2014-04-24 16:11:34 +02:00
parent f8561afacc
commit 3fd8cdc7e0
2 changed files with 6 additions and 1 deletions

View File

@@ -39,6 +39,11 @@
#import <CrashReporter/CrashReporter.h>
#endif
/**
* Custom block that handles the alert that prompts the user whether he wants to send crash reports
*/
typedef void(^customAlertViewHandler)();
/**
* Crash Manager status

View File

@@ -446,7 +446,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
}
- (void)setAlertViewHandler:(void (^)())alertViewHandler{
- (void)setAlertViewHandler:(customAlertViewHandler)alertViewHandler{
_alertViewHandler = alertViewHandler;
}