12345678910111213141516171819202122232425262728293031323334 |
- //
- // myCollectionHeadView.m
- // jiaPeiC
- //
- // Created by apple on 16/6/20.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "myCollectionHeadView.h"
- @implementation myCollectionHeadView
- -(instancetype)initWithFrame:(CGRect)frame{
- if (self =[super initWithFrame:frame]) {
- [self createUI];
- }
- return self;
- }
- -(void)createUI{
-
- TitleLable= [[UILabel alloc]initWithFrame:CGRectMake(0 , 0, kSize.width, 40)];
- TitleLable.textAlignment = NSTextAlignmentCenter;
- TitleLable.textColor = [UIColor orangeColor];
- TitleLable.font = [UIFont scaleSize:Font16];
- [self addSubview:TitleLable];
- }
- //这是头部
- -(void)setTextTitle:(NSString *)tit
- {
- TitleLable.text = tit;
- }
- @end
|