12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- //
- // SignTableCell.m
- // jiaPei
- //
- // Created by apple on 16/4/6.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "SignTableCell.h"
- @implementation SignTableCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
- {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self) {
-
- CGFloat x,y,bd,h,w;
-
- x = bd = 10;
- y = bd;
- w = 80;
- h = 100;
- _headImg = [[UIImageView alloc] initWithFrame:CGRectMake(x, y + 5, w, h)];
- [_headImg borderColor:defGreen width:2 cornorRadios:5];
-
- [self addSubview:_headImg];
-
- x += 90;
- w = kSize.width - x;
- h = 30.0;
-
- UILabel *label;
- label = [[UILabel alloc] initWithFrame:CGRectMake(x, y, w, h)];
- [label setTextAlignment:NSTextAlignmentLeft];
- label.text = @"签到记录";
- label.textColor = titleColor;
- [label setFont:[UIFont scaleSize:20]];
- [self addSubview:label];
- _label1 = label;
-
- y += bd + h;
- label = [[UILabel alloc] initWithFrame:CGRectMake(x, y, w, h)];
- [label setTextAlignment:NSTextAlignmentLeft];
- label.textColor = contentTextColor;
- label.text = @"签到时间:暂无";
- [label setFont:[UIFont scaleSize:17]];
- [self addSubview:label];
- _label2 = label;
-
- y += h;
- label = [[UILabel alloc] initWithFrame:CGRectMake(x, y, w, 2*h)];
- [label setTextAlignment:NSTextAlignmentLeft];
- label.textColor = contentTextColor;
- label.text = @"签到地点:暂无";
- [label setFont:[UIFont scaleSize:17]];
- label.numberOfLines = 0;
- [self addSubview:label];
- _label3 = label;
-
- }
- return self;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|