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.
 
 
 
 

48 lines
1.0 KiB

//
// DialCollectionReusableView.m
// tongxin
//
// Created by ecell on 2023/3/24.
// Copyright © 2023 xTT. All rights reserved.
//
#import "DialCollectionReusableView.h"
@interface DialCollectionReusableView ()
@property (nonatomic ,weak) UILabel *titleLabel;
@end
@implementation DialCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self)
{
self.frame = [UIScreen mainScreen].bounds;
[self subHeadView];
}
return self;
}
- (void)setTitleStr:(NSString *)titleStr
{
_titleStr = titleStr;
self.titleLabel.text = titleStr;
}
- (void)subHeadView
{
UILabel *titleLabel = [UILabel new];
titleLabel.textColor = UIColor.blackColor;
titleLabel.font = [UIFont fontWithName:@"HelveticaNeue" size: 18];
self.titleLabel = titleLabel;
[self addSubview:titleLabel];
[titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self).offset(10);
make.centerY.equalTo(self);
}];
}
@end