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

How to load an alternative image if the remote image has failed to load? #82

Open
houmie opened this issue Jul 3, 2015 · 1 comment

Comments

@houmie
Copy link

houmie commented Jul 3, 2015

Is there a way to achieve that with Haneke?

If you look at SDWebImage, it has a feature like this:

[_newsImage sd_setImageWithURL:imageURL placeholderImage:[UIImage imageNamed:alternative_image_name]];
@ronanociosoig
Copy link

You could load the alternative image in the failure block.

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