省钱达人

DRPrivilegeReferralTableViewCell.m 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // DRPrivilegeReferralTableViewCell.m
  3. // YouHuiProject
  4. //
  5. // Created by jcymac on 2018/5/21.
  6. // Copyright © 2018年 kuxuan. All rights reserved.
  7. //
  8. #import "DRPrivilegeReferralTableViewCell.h"
  9. @interface DRPrivilegeReferralTableViewCell()
  10. @property (weak, nonatomic) IBOutlet UIImageView *leftImgView;
  11. @property (weak, nonatomic) IBOutlet UILabel *rightTitle;
  12. @property (weak, nonatomic) IBOutlet UILabel *rightDesc;
  13. @end
  14. @implementation DRPrivilegeReferralTableViewCell
  15. - (void)awakeFromNib {
  16. [super awakeFromNib];
  17. // Initialization code
  18. }
  19. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  20. [super setSelected:selected animated:animated];
  21. // Configure the view for the selected state
  22. }
  23. -(void)setModel:(DRPrivilegeReferralModel *)model{
  24. _model=model;
  25. // [self.leftImgView setImage:[UIImage imageNamed:model.img]];
  26. // self.rightTitle.text=model.rightTitle;
  27. // self.rightDesc.text=model.rightDesc;
  28. [self.leftImgView sd_setImageWithURL:[NSURL URLWithString:model.img]];
  29. self.rightTitle.text=model.title;
  30. self.rightDesc.text=model.content;
  31. }
  32. @end