IVTMyLiveCollectionViewCell.m 1 KB
//
//  IVTMyLiveCollectionViewCell.m
//  IVTMeLiveTwo
//
//  Created by XRG on 16/8/25.
//  Copyright © 2016年 QLQ. All rights reserved.
//

#import "IVTMyLiveCollectionViewCell.h"

@interface IVTMyLiveCollectionViewCell ()
{
    UIImageView *userHeaderImageView;
}
@end

@implementation IVTMyLiveCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        userHeaderImageView = [[UIImageView alloc]init];
        userHeaderImageView.userInteractionEnabled = YES;
        [self.contentView addSubview:userHeaderImageView];
        [userHeaderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self.contentView);
        }];
    }
    return self;
}

- (void)setUserHeaderImageUrl:(NSString *)userHeaderImageUrl{
    _userHeaderImageUrl = userHeaderImageUrl;
    
    [userHeaderImageView sd_setImageWithURL:[NSURL URLWithString:_userHeaderImageUrl] placeholderImage:[UIImage imageNamed:@"占位头像"]];
}

@end