SDwebimage和af的修改
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@
|
||||
|
||||
NSString * imgUrl = [NSString stringWithFormat:@"%@/room/%@.png",JIEKOUPORTHTTP,model.room_id];
|
||||
self.faceImg.userInteractionEnabled = YES;
|
||||
[self.faceImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"live_hold"]];
|
||||
[self.faceImg sd_setImageWithURL:[NSURL URLWithString:imgUrl] placeholderImage:[UIImage imageNamed:@"live_hold"] options:SDWebImageAllowInvalidSSLCertificates];
|
||||
|
||||
if (!model.userType) {
|
||||
model.userType = @"0";
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
self.timeLabel.text = model.time;
|
||||
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg];
|
||||
|
||||
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str]];
|
||||
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
|
||||
|
||||
if ([model.asUserId isKindOfClass:[NSNull class]]) {
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
UserModel *model = [dataContorl getUserInfo];
|
||||
NSString*str=[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg];
|
||||
|
||||
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"account"]];
|
||||
[self.userImg sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"account"] options:SDWebImageAllowInvalidSSLCertificates];
|
||||
self.inpuTextView.layer.masksToBounds = YES;
|
||||
self.inpuTextView.layer.cornerRadius = CGRectGetHeight(self.inpuTextView.frame)/2;
|
||||
self.userImg.layer.masksToBounds = YES;
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@
|
||||
-(void)loaDataWith:(IfishKankanListModel*)model
|
||||
{
|
||||
|
||||
[self.roomOwnerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"live_roomUser_holder"]];
|
||||
[self.roomOwnerImg sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kGetIconUrl,model.userImg]] placeholderImage:[UIImage imageNamed:@"live_roomUser_holder"]options:SDWebImageAllowInvalidSSLCertificates];
|
||||
|
||||
self.roomUserName.text = model.nickname;
|
||||
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@
|
||||
|
||||
NSString * imgUrl = [NSString stringWithFormat:@"%@/room/%@.png?time=%@",JIEKOUPORTHTTP,roomInfo.roomId,timeString];
|
||||
//cell.liveFaceView
|
||||
[self.liveFaceView sd_setImageWithURL:[NSURL URLWithString:imgUrl]];
|
||||
[self.liveFaceView sd_setImageWithURL:[NSURL URLWithString:imgUrl]placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user