You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
55 lines
1.1 KiB
// |
|
// MoreMenuTitleView.m |
|
// LekangGuard |
|
// |
|
// Created by ecell on 2022/10/20. |
|
// |
|
|
|
#import "MoreMenuTitleView.h" |
|
|
|
@interface MoreMenuTitleView () |
|
|
|
|
|
@property (nonatomic ,weak) UILabel *titleLabel; |
|
|
|
@end |
|
|
|
@implementation MoreMenuTitleView |
|
|
|
- (instancetype)initWithFrame:(CGRect)frame |
|
{ |
|
self = [super initWithFrame:frame]; |
|
if (self) |
|
{ |
|
self.backgroundColor = KKClearColor; |
|
[self subheadView]; |
|
} |
|
return self; |
|
} |
|
|
|
- (void)setTitleStr:(NSString *)titleStr |
|
{ |
|
_titleStr = titleStr; |
|
self.titleLabel.text = titleStr; |
|
} |
|
|
|
- (void)subheadView |
|
{ |
|
UILabel *titleLabel = [UICommon ui_label:CGRectZero lines:0 align:NSTextAlignmentCenter font:FontBoldADA_(14) textColor:KKTextBlackColor text:@"" Radius:0]; |
|
self.titleLabel = titleLabel; |
|
[self addSubview:titleLabel]; |
|
[titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { |
|
make.left.equalTo(self).offset(10); |
|
make.centerY.equalTo(self); |
|
}]; |
|
} |
|
|
|
/* |
|
// Only override drawRect: if you perform custom drawing. |
|
// An empty implementation adversely affects performance during animation. |
|
- (void)drawRect:(CGRect)rect { |
|
// Drawing code |
|
} |
|
*/ |
|
|
|
@end
|
|
|