Skip to content

Commit d149e10

Browse files
author
Mike Amaral
committed
Added new validation block property to SCLButton.
1 parent 0a4cad0 commit d149e10

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

SCLAlertView/SCLButton.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
@interface SCLButton : UIButton
1212

1313
typedef void (^ActionBlock)(void);
14+
typedef BOOL (^ValidationBlock)(void);
1415

1516
// Action Types
1617
typedef NS_ENUM(NSInteger, SCLActionType)
@@ -24,6 +25,7 @@ typedef NS_ENUM(NSInteger, SCLActionType)
2425
@property SCLActionType actionType;
2526

2627
@property (nonatomic, copy) ActionBlock actionBlock;
28+
@property (nonatomic, copy) ValidationBlock validationBlock;
2729

2830
@property id target;
2931

0 commit comments

Comments
 (0)