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