28 lines
624 B
Objective-C
28 lines
624 B
Objective-C
//
|
|
// CollectionheaderView.m
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/8/2.
|
|
// Copyright © 2016年 lianxiang. All rights reserved.
|
|
//
|
|
|
|
#import "CollectionheaderView.h"
|
|
|
|
@implementation CollectionheaderView
|
|
-(instancetype)initWithFrame:(CGRect)frame{
|
|
|
|
self = [super initWithFrame:frame];
|
|
|
|
if (self) {
|
|
self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, kScreenSize.width, 40)];
|
|
self.titleLabel.textColor = [UIColor whiteColor];
|
|
self.titleLabel.textAlignment = NSTextAlignmentLeft;
|
|
[self addSubview:self.titleLabel];
|
|
|
|
}
|
|
return self;
|
|
|
|
}
|
|
|
|
@end
|