Skip to content

Commit

Permalink
Fixed spaces for pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
Legoless committed Oct 21, 2016
1 parent 86c86ef commit 6eb75c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions JTAlertView/JTAlertView.h
Expand Up @@ -18,7 +18,7 @@ typedef NS_ENUM(NSInteger, JTAlertViewStyle) {
JTAlertViewStyleDestructive
};

typedef void (^JTAlertViewStyling)(UIButton* btn);
typedef void (^JTAlertViewStyling)(UIButton *btn);

// Public properties
/** Size of the alertView. Default is 240.0, 290.0. */
Expand Down Expand Up @@ -56,7 +56,7 @@ typedef void (^JTAlertViewStyling)(UIButton* btn);
- (void)addButtonWithTitle:(NSString *)titleText action:(void (^)(JTAlertView *alertView))action;
- (void)addButtonWithTitle:(NSString *)titleText style:(JTAlertViewStyle)style action:(void (^)(JTAlertView *alertView))action;
- (void)addButtonWithTitle:(NSString *)titleText style:(JTAlertViewStyle)style forControlEvents:(UIControlEvents)controlEvents action:(void (^)(JTAlertView *alertView))action;
- (void)addButtonWithTitle:(NSString *)titleText font:(UIFont * _Nullable )font style:(JTAlertViewStyle)style forControlEvents:(UIControlEvents)controlEvents action:(void (^)(JTAlertView *alertView))action;
- (void)addButtonWithTitle:(NSString *)titleText font:(UIFont * _Nullable)font style:(JTAlertViewStyle)style forControlEvents:(UIControlEvents)controlEvents action:(void (^)(JTAlertView *alertView))action;

/** Designated method to adda a button. Provide a styling block to update custom styling to provided button, overriding default JTAlertViewStyle parameter and font. */
- (void)addButtonWithTitle:(NSString *)titleText styling:(JTAlertViewStyling _Nullable)styling forControlEvents:(UIControlEvents)controlEvents action:(void (^)(JTAlertView *alertView))action;
Expand Down
2 changes: 1 addition & 1 deletion JTAlertView/JTAlertView.m
Expand Up @@ -88,7 +88,7 @@ - (void)addButtonWithTitle:(NSString *)titleText style:(JTAlertViewStyle)style f
}

- (void)addButtonWithTitle:(NSString *)titleText font:(UIFont *)font style:(JTAlertViewStyle)style forControlEvents:(UIControlEvents)controlEvents action:(void (^)(JTAlertView *alertView))action {
JTAlertViewStyling styling = ^(UIButton* btn) {
JTAlertViewStyling styling = ^(UIButton *btn) {
[btn setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[btn setBackgroundColor:[UIColor whiteColor]];
if (!font) {
Expand Down

0 comments on commit 6eb75c6

Please sign in to comment.