Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

placeholderImage not show #365

Closed
wangpeng1 opened this issue Apr 22, 2013 · 1 comment
Closed

placeholderImage not show #365

wangpeng1 opened this issue Apr 22, 2013 · 1 comment
Milestone

Comments

@wangpeng1
Copy link

if the image url is exist,and not have image ; for example :people.avatarbig http://ws.loc.sh/images/515b9f54e4b04a5a481030f9

if(![GlobalVariable isBlankString:people.avatarbig]){

       [cell.headImage setImageWithURL:[NSURL URLWithString:people.avatarbig]
                    placeholderImage:[UIImage imageNamed:@"default_user.png"]];

    }else{
        cell.headImage.image=[UIImage imageNamed:@"default_user.png"];
    }

my cell.headImage not show the default_user.png ,and show nothing

@wangpeng1
Copy link
Author

i think this is a bug ,and should modify the UIImage *SDScaledImageForPath(NSString *path, NSObject *imageOrData) method: if (image &&[[UIScreen mainScreen] respondsToSelector:@selector(scale)]) not if ( [[UIScreen mainScreen] respondsToSelector:@selector(scale)])

bpoplauschi added a commit to bpoplauschi/SDWebImage that referenced this issue Jun 10, 2014
…m is nil, this inline function will return a non-nil instance of UIImage
@bpoplauschi bpoplauschi added this to the 3.7.0 milestone Jun 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants