小说绘上架版本
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// TFButton+TFExtension.h
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/22.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFButton.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface TFButton (TFExtension)
|
||||
|
||||
+ (TFButton *)initWithFrame:(CGRect)frame btnTitle:(NSString *)title btnImageName:(NSString *)imageName backgroundColor:(UIColor *)backgroundColor btnTintColor:(UIColor *)tintColor btnStyle:(TFButtonIndicator)style cornerRadius:(CGFloat)cornerRadius target:(id)target action:(SEL)action;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// TFButton+TFExtension.m
|
||||
// TFReader
|
||||
//
|
||||
// Created by 谢腾飞 on 2020/12/22.
|
||||
// Copyright © 2020 xtfei_2011@126.com. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TFButton+TFExtension.h"
|
||||
|
||||
@implementation TFButton (TFExtension)
|
||||
|
||||
+ (TFButton *)initWithFrame:(CGRect)frame btnTitle:(NSString *)title btnImageName:(NSString *)imageName backgroundColor:(UIColor *)backgroundColor btnTintColor:(UIColor *)tintColor btnStyle:(TFButtonIndicator)style cornerRadius:(CGFloat)cornerRadius target:(id)target action:(SEL)action
|
||||
{
|
||||
TFButton *btn = [[TFButton alloc] initWithFrame:frame buttonTitle:title buttonImageName:imageName buttonIndicator:style];
|
||||
btn.buttonTintColor = tintColor;
|
||||
btn.backgroundColor = backgroundColor;
|
||||
btn.layer.cornerRadius = cornerRadius;
|
||||
[btn addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
return btn;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user