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 use hnk_setImageFromURL on "empty" UIImageView? #95

Open
danielrosero opened this issue Jan 28, 2016 · 2 comments
Open

How to use hnk_setImageFromURL on "empty" UIImageView? #95

danielrosero opened this issue Jan 28, 2016 · 2 comments

Comments

@danielrosero
Copy link

Im trying to load images on UIImageView

Im doing this when I recieve my data from webservice.

    UIImageView *capsulaImagen = [[UIImageView alloc]init];


    capsulaImagen.hnk_cacheFormat=[HNKCache sharedCache].formats[@"thumbnail"];

    [capsulaImagen hnk_setImageFromURL:url ];

But im getting an awkward behavior on the UITableViewCell, images wont show until I scroll the table, and first two ones will show with the lines overlayed.

Like this:
simulator screen shot 28 01 2016 10 35 12 a m

I have tried declaring the UIImageView with initWithFrame

   UIImageView *capsulaImagen =[[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 200, 200)];

But the issue persist, also tried using this after and still the same:

    [capsulaImagen sizeToFit];

    [capsulaImagen reloadInputViews];

    [capsulaImagen setNeedsDisplay];

What should I do?

@MaximusMcCann
Copy link

I have a similar issue with a custom UIImageView on a custom UITableViewCell. On first load the image is blurry. After scrolling past and coming back, the image is correct... Not setting the image, the placeholder image is loading as expected.

@pvcary
Copy link

pvcary commented Nov 14, 2017

@danielrosero did you find an answer to this? I'm having trouble with the same thing.

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

3 participants