From 3fd8cdc7e0b4d4b3227302575b29dff2498e088c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Spie=C3=9F?= Date: Thu, 24 Apr 2014 16:11:34 +0200 Subject: [PATCH] replace ugly block notation with clean typedef --- Classes/BITCrashManager.h | 5 +++++ Classes/BITCrashManager.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/BITCrashManager.h b/Classes/BITCrashManager.h index 3afe47092b..9a6ba8a0f5 100644 --- a/Classes/BITCrashManager.h +++ b/Classes/BITCrashManager.h @@ -39,6 +39,11 @@ #import #endif +/** + * Custom block that handles the alert that prompts the user whether he wants to send crash reports + */ +typedef void(^customAlertViewHandler)(); + /** * Crash Manager status diff --git a/Classes/BITCrashManager.m b/Classes/BITCrashManager.m index 303c0d0912..f4cb6e1508 100644 --- a/Classes/BITCrashManager.m +++ b/Classes/BITCrashManager.m @@ -446,7 +446,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus"; } -- (void)setAlertViewHandler:(void (^)())alertViewHandler{ +- (void)setAlertViewHandler:(customAlertViewHandler)alertViewHandler{ _alertViewHandler = alertViewHandler; }