我正在开发一个应该通过在SDWebImage中传递图像URL来在UIImageview
中显示图像的应用程序。它在iOS6和早期设备中运行良好并显示图像,但在iOS7中它不会生成图像。这是我的代码
这是ImageUrl我正在使用
在这里,ImageUrl具有值
[self.ImgView setImageWithURL:[NSURL URLWithString:imageUrl] placeholderImage:[UIImage imageNamed:@"load.png"]];
当它调用以下方法时,url变为零。所以只有它不会返回图像。
- (void)setImageWithURL:(NSURL *)url placeholderImage:(UIImage *)placeholder
{
[self setImageWithURL:url placeholderImage:placeholder options:0];
}
有人建议我问题出在哪里?