提交
This commit is contained in:
29
TUIKit/TIMCommon/CommonModel/TUIFitButton.h
Normal file
29
TUIKit/TIMCommon/CommonModel/TUIFitButton.h
Normal file
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// TUIFitButton.h
|
||||
// TUICore
|
||||
//
|
||||
// Created by wyl on 2022/5/24.
|
||||
// Copyright © 2023 Tencent. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TUIFitButton : UIButton
|
||||
@property(nonatomic, assign) CGRect titleRect;
|
||||
@property(nonatomic, assign) CGRect imageRect;
|
||||
|
||||
@property(nonatomic, assign) CGSize imageSize;
|
||||
@property(nonatomic, assign) CGSize titleSize;
|
||||
|
||||
@property(nonatomic, strong) UIImage* hoverImage;
|
||||
@property(nonatomic, strong) UIImage* normalImage;
|
||||
|
||||
@end
|
||||
|
||||
@interface TUIBlockButton : TUIFitButton
|
||||
@property(nonatomic, copy) void (^clickCallBack)(id button);
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
Reference in New Issue
Block a user