我有以下代码
if([news.new_image isEqualToString:@""]){
cell.imgNews.image = [UIImage imageNamed:@"placeholder.png"];
}else{
NSString *url = [NSString stringWithFormat:@"http://genkonstage.genk.be/files/news/s_%@",news.new_image];
[cell.imgNews setImageWithURL:[NSURL URLWithString:url]
placeholderImage:[UIImage imageNamed:@"placeholder.png"]];
}
但每次我跑它。我在NSString *url line
genkonstage(56799,0x357f1a8) malloc: *** error for object 0xc4d1660: double free
*** set a breakpoint in malloc_error_break to debug
有人可以帮帮我吗?
* 我在项目中启用了ARC。
谢谢!