1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // PlanCollectionViewCell.m
- // jiaPeiC
- //
- // Created by apple on 16/6/14.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "PlanCollectionViewCell.h"
- @implementation PlanCollectionViewCell
- -(instancetype)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self) {
-
- self.backgroundColor = backGroundColor;
-
- [self.contentView borderColor:lineColor width:1 cornorRadios:5];
-
- CGFloat wid = frame.size.width;
- CGFloat hei = frame.size.height;
-
- CGFloat x,y,w,h,bd;
- x = 0;
- bd = 5;
- w = wid;
- h = (hei-10)/3.0;
-
- NSMutableArray *labelArray = [NSMutableArray array];
- for (int i = 0; i < 3; i ++) {
-
- y = h*i + bd;
- UILabel *label = [[UILabel alloc] setxywh];
- [label setText:@"" Font:Font14 TextColor:contentTextColor Alignment:NSTextAlignmentCenter];
- [self.contentView addSubview:label];
- [labelArray addObject:label];
- }
-
- _timeLabel = labelArray[0];
- _kemuLabel = labelArray[1];
- _countLabel = labelArray[2];
-
- [_timeLabel setTextColor:titleColor];
- [_timeLabel setFont:[UIFont scaleSize:Font16]];
- _timeLabel.text = @"07:00-08:00";
- _kemuLabel.text = @"科目二";
- _countLabel.text = @"已约0人 可约3人";
-
- }
- return self;
- }
- @end
|