Skip to content

UIButton的一个Category,使用block处理UIControlEvent事件,如常用的TouchUpInside等

Notifications You must be signed in to change notification settings

songhailiang/UIButton-Block

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIButton-Block

UIButton的一个Category,使用block处理UIControlEvent事件,如常用的TouchUpInside等

使用方法

- (void)viewDidLoad {
    [super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.

    [self.button handleControlEvent:UIControlEventTouchUpInside withBlock:^{

        NSLog(@"button touched!");
    }];
}

About

UIButton的一个Category,使用block处理UIControlEvent事件,如常用的TouchUpInside等

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published