This commit is contained in:
Yao
2025-01-11 14:58:16 +08:00
parent f82486e8b0
commit 1095c32599
262 changed files with 62730 additions and 36131 deletions

View File

@@ -0,0 +1,29 @@
//
// UIButton+DSButtonBlock.h
// DSChat
//
// Created by Mac on 2022/6/14.
// Copyright © 2022 DS. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^ButtonBlock)(UIButton * _Nullable btn);
NS_ASSUME_NONNULL_BEGIN
@interface UIButton (DSButtonBlock)
/**
* button 添加点击事件
*/
- (void)addAction:(ButtonBlock)block;
/**
* button 添加事件
*/
- (void)addAction:(ButtonBlock)block forControlEvents:(UIControlEvents)controlEvents;
@end
NS_ASSUME_NONNULL_END