UIImageView没有得到图像,并给出null,我也试过用懒惰的代码,但它仍然给出null。UIImageView不接受图像并给出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){}];
PLZ回答DIS问题... – Coder 2013-04-04 06:22:27
:发布的NSLog的结果(@ “StrImg值=%@”,StrImg); – 2013-04-04 06:24:08
http://www.mobiappsolutions.com/nitin/FashionApp/admin/json/images1/515928a26a73c.png – Coder 2013-04-04 06:25:36