Initial commit

This commit is contained in:
lianxiang
2018-08-22 11:15:52 +08:00
parent d98e20881f
commit 249bf6864e
491 changed files with 68665 additions and 7 deletions
+20
View File
@@ -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