i have a image link people.avatarbig: http://ws.loc.sh/images/515b9f54e4b04a5a481030f9 when you use browse to open it,you will see nothing,so SDWebImage should show placeholderImage but now it show nothing.my code :
if(![GlobalVariable isBlankString:people.avatarbig])
{
[imageView1 setImageWithURL:[NSURL URLWithString:people.avatarbig]
placeholderImage:[UIImage imageNamed:@"default_user.png"]];
}else{
imageView1.image=[UIImage imageNamed:@"default_user.png"];
}
why SDWebImage not show placeholderImage?
i think this is a bug so you should modify the method :NS_INLINE UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData)
the correct is :
if (image &&[[UIScreen mainScreen] respondsToSelector:@selector(scale)])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.