nicklockwood / AsyncImageView

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#asyncimageview
Other
906 stars 186 forks source link

UIimage *image =asynceImage.image sometime return invalided image #22

Closed yunchiri closed 11 years ago

yunchiri commented 11 years ago

Thank you nick,

  1. AsyncImageView *asyncImageView = alloc... init...
  2. asyncImageView setImageURL( image url)

After I received AsyncImageLoadDidFinish from NSNotificationCenter

I save asyncimage.image at mydocument..

and saveMethod like dispatch_async(dispatch_get_global_queue(0, 0), ^{ asyncimage.image save to disk }

It is Ok, but sometimes invalided Image saved

normally image file size > 1kb but invalided image file size < 1kb and it can't loading

I think "AsyncImageLoadDidFinish" message response time is faster then "real download image time"

how can I save asyncImageView.image to disk safely?

Thanks

jaredalexander commented 11 years ago

i'm noticing that .image is returning a nil UIImage after AsyncImageLoadDidFinish notification triggers as well...

yunchiri commented 11 years ago

Sorry my mistake...^^