• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Invalidating UIImageView's image cache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Invalidating UIImageView's image cache (From: Carl Hoefs via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: App store question regarding Big Sur
  • Next by Date: Re: Invalidating UIImageView's image cache
  • Previous by thread: Invalidating UIImageView's image cache
  • Next by thread: Re: Invalidating UIImageView's image cache
  • Index(es):
    • Date
    • Thread