Re: Invalidating UIImageView's image cache

2020-09-23 Thread Carl Hoefs via Cocoa-dev
Yes! +[UIImage imageNamed:] was The Caching Culprit™️. I was barking up the wrong object (UIImageView). As per Eric's suggestion I've switch to +[UIImage imageWithContentsOfFile:], and now there's no image caching (as per Mike's suggestion to RTM: "This method does not cache the image object".

Re: Invalidating UIImageView's image cache

2020-09-23 Thread Mike Abdullah via Cocoa-dev
Correct, this is your issue. Have a read of the docs on +[UIImage imageNamed:] They explicitly discuss the cache. This is not the API you want. Mike. > On 23 Sep 2020, at 02:12, Eric Lee via Cocoa-dev > wrote: > > Ah maybe it is the use of `imageNamed:`. I believe that caches the image >