Re: Invalidating UIImageView's image cache
Re: Invalidating UIImageView's image cache
- Subject: Re: Invalidating UIImageView's image cache
- From: Uli Kusterer via Cocoa-dev <email@hidden>
- Date: Mon, 21 Sep 2020 17:20:14 +0200
On 2. Sep 2020, at 02:40, Carl Hoefs via Cocoa-dev <email@hidden>
wrote:
> I've tried setting UIImageView.image=nil, UIImageView.animationImages=nil,
> toggling UIImageView.hidden, wiping the sandbox, etc., but no joy. Of course,
> restarting the app does force-flush the cache, but that's a no-go.
>
> The only way I've found to invalidate UIImageView's caching (without killing
> the app) is to play games like generating unique filenames for each run of
> the processing loop of the app. Apparently UIImageView tracks _filenames_ to
> determine when to flush/update its cache!
>
> So, if there actually exists a kosher way to do this, I welcome any/all hints!
I don't have a good answer, but I think this may be more that UIImage caches
the images, not UIImageView. Maybe you can find something in UIImage's
docs/headers?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden