12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // TJCell.m
- // jiaPeiC
- //
- // Created by apple on 16/3/22.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "TJCell.h"
- @implementation TJCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
- {
- self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
- if (self) {
-
- float x = 120;
- if (kSize.width > 350.0) {
- x = 150;
- }
- _dateLabel = [[UILabel alloc] initWithFrame:CGRectMake(x, 0, kSize.width - x, self.height)];
-
- [self.contentView addSubview:_dateLabel];
- }
-
- [self setSelectionStyle:UITableViewCellSelectionStyleNone];
- return self;
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|