| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // PingLunCell.m
- // model
- //
- // Created by MUMEI on 2018/8/6.
- // Copyright © 2018年 Mine. All rights reserved.
- //
- #import "PingLunCell.h"
- @implementation PingLunCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (void)setModel:(PingLunModel *)model{
- _model = model;
- self.dateLabel.text = model.idate;
- self.name.text = model.pet;
- self.intro.text = model.intro;
- self.iconImage.layer.cornerRadius = 20;
- self.iconImage.layer.masksToBounds= YES;
- [self.iconImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",imageURl,model.hphoto]] placeholderImage:[UIImage imageNamed:@"touxiang_wait"]];
- [self.deleteButton addTarget:self action:@selector(deletePinglun) forControlEvents:UIControlEventTouchUpInside];
- }
- -(void)deletePinglun{
-
- [self.delegate deletePingLun:_model.pk];
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|