123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //
- // FKProProcessCell.m
- // FirstLink
- //
- // Created by jack on 16/8/16.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKProProcessCell.h"
- @interface FKProProcessCell ()
- @property (nonatomic, strong) UIImageView *processImgView;
- @end
- @implementation FKProProcessCell
- - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
- if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
- [self addAllSubviews];
- self.selectionStyle = UITableViewCellSelectionStyleNone;
- self.contentView.backgroundColor = [UIColor whiteColor];
- }
- return self;
- }
- - (void)addAllSubviews{
- [self.contentView addSubview:self.processImgView];
- [self.processImgView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.top.equalTo(self.contentView).offset(12);
- make.left.equalTo(self.contentView).offset(15);
- make.right.equalTo(self.contentView).offset(- 15);
- }];
- }
- + (CGFloat)cellHeight{
- return 90.0f;
- }
- - (UIImageView *)processImgView{
- if (_processImgView == nil) {
- _processImgView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"buy_process"]];
- }
- return _processImgView;
- }
- @end
|