SeceneCollectionPictureCell.m 727 Bytes
Newer Older
zhu's avatar
zhu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//
//  SeceneCollectionPictureCell.m
//  Lighting
//
//  Created by mac on 16/5/17.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "SeceneCollectionPictureCell.h"

@implementation SeceneCollectionPictureCell
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        [self addSubview:self.imageView];
    }
    return self;
}
ZCJ's avatar
ZCJ committed
20 21 22 23 24 25 26 27
#pragma mark -赋值
- (void)setModel:(TOSceneEntity *)model
{
    _model = model;
    
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:_model.pricure] placeholderImage:ReplaceImage];
}

zhu's avatar
zhu committed
28
@end