Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Pod/Classes/UIAlertController+BetterConstructor.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#import <UIKit/UIKit.h>

typedef void (^alertHandler_t)(UIAlertAction *action);
typedef void (^alertHandler_t)(UIAlertAction * _Nullable action);

/**
* A category adding a shorthand constructor to prevent creating a bunch of action objects.
Expand All @@ -52,8 +52,8 @@ typedef void (^alertHandler_t)(UIAlertAction *action);
*
* @return an alert controller all ready to go without all the initialization/styling hastle of actions
*/
+ (instancetype)alertControllerWithTitle:(NSString *)title message:(NSString *)message style:(UIAlertControllerStyle)style cancelButtonTitle:(NSString *)cancelTitle cancelButtonBlock:(alertHandler_t)cancelBlock destructiveButtonTitle:(NSString*)destructiveTitle destructiveButtonBlock:(alertHandler_t)destructiveBlock otherButtonTitlesAndBlocks:(id)otherTitlesAndBlocks, ... NS_REQUIRES_NIL_TERMINATION;
+ (nonnull instancetype)alertControllerWithTitle:(nullable NSString *)title message:(nullable NSString *)message style:(UIAlertControllerStyle)style cancelButtonTitle:(nullable NSString *)cancelTitle cancelButtonBlock:(nullable alertHandler_t)cancelBlock destructiveButtonTitle:(nullable NSString*)destructiveTitle destructiveButtonBlock:(nullable alertHandler_t)destructiveBlock otherButtonTitlesAndBlocks:(nullable id)otherTitlesAndBlocks, ... NS_REQUIRES_NIL_TERMINATION;

@end

extern alertHandler_t const DisabledBlock;
extern alertHandler_t _Nonnull const DisabledBlock;
2 changes: 1 addition & 1 deletion Pod/Classes/UIAlertController+BetterConstructor.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ + (instancetype)alertControllerWithTitle:(NSString *)title message:(NSString *)m

@end

alertHandler_t const DisabledBlock = ^(UIAlertAction * nope){};
alertHandler_t const DisabledBlock = ^(UIAlertAction * nope){};