// // 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