Няма описание

FKProProcessCell.m 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // FKProProcessCell.m
  3. // FirstLink
  4. //
  5. // Created by jack on 16/8/16.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKProProcessCell.h"
  9. @interface FKProProcessCell ()
  10. @property (nonatomic, strong) UIImageView *processImgView;
  11. @end
  12. @implementation FKProProcessCell
  13. - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
  14. if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
  15. [self addAllSubviews];
  16. self.selectionStyle = UITableViewCellSelectionStyleNone;
  17. self.contentView.backgroundColor = [UIColor whiteColor];
  18. }
  19. return self;
  20. }
  21. - (void)addAllSubviews{
  22. [self.contentView addSubview:self.processImgView];
  23. [self.processImgView mas_makeConstraints:^(MASConstraintMaker *make) {
  24. make.top.equalTo(self.contentView).offset(12);
  25. make.left.equalTo(self.contentView).offset(15);
  26. make.right.equalTo(self.contentView).offset(- 15);
  27. }];
  28. }
  29. + (CGFloat)cellHeight{
  30. return 90.0f;
  31. }
  32. - (UIImageView *)processImgView{
  33. if (_processImgView == nil) {
  34. _processImgView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"buy_process"]];
  35. }
  36. return _processImgView;
  37. }
  38. @end