gliubc
6/14/2018 - 2:30 AM

CollectionHeaderView

CollectionHeaderView

@interface SelectCategoryCollectionHeaderView : UICollectionReusableView

@property (strong, nonatomic) UILabel *label;

@end
@implementation SelectCategoryCollectionHeaderView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        UILabel *label = [UILabel new];
        label.textColor = HEXCOLOR(0x383838);
        label.font = [UIFont systemFontOfSize:13];
        [self addSubview:label];
        [label mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_offset(14);
            make.centerY.mas_offset(3);
        }];
        self.label = label;
    }
    return self;
}

@end