Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// GiGaBlockButton.m
|
||||
// GIGA
|
||||
//
|
||||
// Created by lianxiang on 2018/8/20.
|
||||
// Copyright © 2018年 com.giga.ios. All rights reserved.
|
||||
//
|
||||
|
||||
#import "GiGaBlockButton.h"
|
||||
|
||||
@implementation GiGaBlockButton
|
||||
|
||||
-(void)initWithBlock:(ClickActionBlock)clickBlock for:(UIControlEvents)envent{
|
||||
[self addTarget:self action:@selector(btnAction:) forControlEvents:envent];
|
||||
self.clickBlock = clickBlock;
|
||||
}
|
||||
-(void)btnAction:(UIButton *)btn{
|
||||
self.clickBlock(btn);
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user