ifish/Ifish/controllers/IfishTabControllers/探索/IfishLive/MineKankan/MineKanEditSec0ViewCell.m

40 lines
1020 B
Objective-C

//
// MineKanEditSec0ViewCell.m
// Ifish
//
// Created by imac on 16/11/10.
// Copyright © 2016年 lianxiang. All rights reserved.
//
#import "MineKanEditSec0ViewCell.h"
#import "UIImageView+WebCache.h"
@implementation MineKanEditSec0ViewCell
- (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)loadImgWith:(MineKanKanRoomInfo*)roomInfo
{
//获取系统当前的时间戳
NSDate* dat = [NSDate dateWithTimeIntervalSinceNow:0];
NSTimeInterval time=[dat timeIntervalSince1970]*1000;
NSString *timeString = [NSString stringWithFormat:@"%.0f",time];
NSString * imgUrl = [NSString stringWithFormat:@"%@/room/%@.png?time=%@",JIEKOUPORTHTTP,roomInfo.roomId,timeString];
//cell.liveFaceView
[self.liveFaceView sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
}
@end