1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // DRPrivilegeReferralTableViewCell.m
- // YouHuiProject
- //
- // Created by jcymac on 2018/5/21.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import "DRPrivilegeReferralTableViewCell.h"
- @interface DRPrivilegeReferralTableViewCell()
- @property (weak, nonatomic) IBOutlet UIImageView *leftImgView;
- @property (weak, nonatomic) IBOutlet UILabel *rightTitle;
- @property (weak, nonatomic) IBOutlet UILabel *rightDesc;
- @end
- @implementation DRPrivilegeReferralTableViewCell
- - (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
- }
- -(void)setModel:(DRPrivilegeReferralModel *)model{
- _model=model;
- // [self.leftImgView setImage:[UIImage imageNamed:model.img]];
-
- // self.rightTitle.text=model.rightTitle;
- // self.rightDesc.text=model.rightDesc;
- [self.leftImgView sd_setImageWithURL:[NSURL URLWithString:model.img]];
- self.rightTitle.text=model.title;
- self.rightDesc.text=model.content;
- }
- @end
|