mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
replace ugly block notation with clean typedef
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -446,7 +446,7 @@ NSString *const kBITCrashManagerStatus = @"BITCrashManagerStatus";
|
||||
}
|
||||
|
||||
|
||||
- (void)setAlertViewHandler:(void (^)())alertViewHandler{
|
||||
- (void)setAlertViewHandler:(customAlertViewHandler)alertViewHandler{
|
||||
_alertViewHandler = alertViewHandler;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user