UIImageView 没有获取图像并给出 null,我也尝试过使用惰性代码,但它仍然给出 null。
UIImageView *image_view=[[UIImageView alloc]initWithFrame:CGRectMake(10, 2, 50, 58)];
NSString *StrImg=[[NSString alloc]init];
StrImg=[NSString stringWithFormat:@"%@",[[Array_FinalobjectAtIndex:indexPath.row]objectForKey:@"coverphoto"]];
NSLog(@"StrImg value=%@",StrImg);
[image_view setImageWithURL:[NSURL URLWithString:StrImg] placeholderImage:[UIImage imageNamed:@"star.png"] success:^(UIImage *image) {}failure:^(NSError *error){}];