OC: 20160829∆

有意思吧。

@interface News : NSObject

@property (nonatomic, strong) NSString *imgurl;
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *nickname;



//@property (nonatomic, strong) NSString *weixinlogo;  ®
@property (nonatomic, strong) NSString *weixinLogo;

Œ
ŒŒ
Œ

- (void) setModel: (News *) model{

    _model = model;        
    
    self.leftImageView.image = [UIImage imageNamed: model.imgurl];
    
    
    self.titleLabel.text = model.title;
    
    
//    self.logoImageView.image = [UIImage imageNamed:model.weixinlogo]; ®

    self.logoImageView.image = [UIImage imageNamed:model.weixinLogo];
    
    
    self.nickNameLabel.text = model.nickname;
    
    
}

你可能感兴趣的:(OC: 20160829∆)