From 21ec35a027aae2b5e71df99ac67ffcef87a009f6 Mon Sep 17 00:00:00 2001 From: Michael Biggs Date: Tue, 21 Feb 2017 14:42:00 -0700 Subject: [PATCH] Added nullability specifiers --- Pod/Classes/PXBlockAlertView.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Pod/Classes/PXBlockAlertView.h b/Pod/Classes/PXBlockAlertView.h index c21f457..8d17f62 100644 --- a/Pod/Classes/PXBlockAlertView.h +++ b/Pod/Classes/PXBlockAlertView.h @@ -28,7 +28,7 @@ @class PXBlockAlertView; -typedef void (^ button_block_t)(PXBlockAlertView * sender); +typedef void (^ button_block_t)(PXBlockAlertView * _Nonnull sender); /** * UIAlertView-like class which takes blocks for the buttons rather than requiring a delegate. @@ -45,7 +45,7 @@ typedef void (^ button_block_t)(PXBlockAlertView * sender); * @param cancelTitle the title for the cancel button * @param cancelBlock the block to run if the cancel button is pressed */ -+ (void)showWithTitle:(NSString*)title message:(NSString*)message acceptButtonTitle:(NSString*)acceptTitle block:(button_block_t)acceptBlock cancelButtonTitle:(NSString*)cancelTitle block:(button_block_t)cancelBlock; ++ (void)showWithTitle:(nullable NSString*)title message:(nullable NSString*)message acceptButtonTitle:(nullable NSString*)acceptTitle block:(nonnull button_block_t)acceptBlock cancelButtonTitle:(nullable NSString*)cancelTitle block:(nonnull button_block_t)cancelBlock; /** * Show an alert with one button. @@ -55,6 +55,6 @@ typedef void (^ button_block_t)(PXBlockAlertView * sender); * @param acceptTitle the title of the accept button (the only button) * @param acceptBlock the block to run if the accept button is pressed */ -+ (void)showWithTitle:(NSString*)title message:(NSString*)message acceptButtonTitle:(NSString*)acceptTitle block:(button_block_t)acceptBlock; ++ (void)showWithTitle:(nullable NSString*)title message:(nullable NSString*)message acceptButtonTitle:(nullable NSString*)acceptTitle block:(nonnull button_block_t)acceptBlock; @end