zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
//  PBPersonListCollectionViewCell.m
//  IphoneBIMe
//
//  Created by zjf on 2020/12/4.
//  Copyright © 2020 ProBIM. All rights reserved.
//
 
#import "PBPersonListCollectionViewCell.h"
@interface PBPersonListCollectionViewCell()
@property (nonatomic,strong) UILabel *titleLabel;
@end
@implementation PBPersonListCollectionViewCell
- (UILabel *)titleLabel {
    if (_titleLabel == nil) {
        _titleLabel = [UILabel z_labelWithText:@"" Color:PBColor(0, 122, 255) isBold:YES Font:14];
        _titleLabel.backgroundColor = PBColor(229, 239, 250);
        _titleLabel.layer.cornerRadius = 6;
        _titleLabel.layer.masksToBounds = YES;
        _titleLabel.textAlignment = NSTextAlignmentCenter;
//        _titleLabel.layer.borderColor = JKColor(220, 220, 220, 1.0).CGColor;
//        _titleLabel.layer.borderWidth = 0.5;
    }
    return _titleLabel;
}
 
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self.contentView addSubview:self.titleLabel];
    }
    return self;
}
 
- (void)configCellWithTitle:(NSString *)title {
    self.titleLabel.frame = self.bounds;
    self.titleLabel.text = title;
}
@end