// // FKProActivityBaseCell.m // FirstLink // // Created by ascii on 2016/11/11. // Copyright © 2016年 FirstLink. All rights reserved. // #import "FKProActivityBaseCell.h" @implementation FKProActivityBaseCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier { self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; if (self) { [self.contentView addSubview:self.bgImageView]; [self.bgImageView mas_makeConstraints:^(MASConstraintMaker *make) { make.edges.equalTo(self.contentView); }]; } return self; } #pragma mark - Method + (CGFloat)height { return 50; } + (CGFloat)countDownViewWidth { if (IS_IPHONE_4 || IS_IPHONE_5) { return 110; } return 120; } #pragma mark - Property - (UIImageView *)bgImageView { if (!_bgImageView) { _bgImageView = [UIImageView new]; _bgImageView.image = [UIImage imageNamed:@"DetailActivityBgIcon"]; } return _bgImageView; } - (UIImageView *)leftIconView { if (!_leftIconView) { _leftIconView = [UIImageView new]; } return _leftIconView; } - (UILabel *)titleLabel{ if (_titleLabel == nil) { _titleLabel = [[UILabel alloc]init]; _titleLabel.textColor = UIColorFromRGB(0xffffff); _titleLabel.font = [UIFont boldSystemFontOfSize:15]; _titleLabel.numberOfLines = 2; } return _titleLabel; } - (FKProCountDownView *)countDownView { if (!_countDownView) { _countDownView = [[FKProCountDownView alloc] init]; } return _countDownView; } @end