Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added nullability specifiers #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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/PXBlockAlertView.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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