12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //
- // RecordCell.m
- // jiaPeiC
- //
- // Created by apple on 16/3/21.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "RecordCell.h"
- @implementation RecordCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
- {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self)
- {
- _dateLabel = [UILabel new];
- _dateLabel.textAlignment = NSTextAlignmentRight;
- [self addSubview:_dateLabel];
-
- //[self.textLabel boardWid:1 Color:defGreen];
- }
- return self;
- }
- -(void)layoutSubviews
- {
- [super layoutSubviews];
-
- CGFloat x,y,w,h;
- w = 130;
- x = kSize.width - w - 40;
- if (kSize.width < 350) {
- x = kSize.width - w - 10;
- }
- y = self.textLabel.y;
- h = self.textLabel.height;
- _dateLabel.frame = CGRectMake(x, y, w, h);
-
- CGRect size = self.detailTextLabel.frame;
- size.origin.x = 40;
- size.origin.y = 50;
- size.size.width = kSize.width - 70;
- self.detailTextLabel.frame = size;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|