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

Switch from UIImage(named: ) to UIImage(contentsOfFile:) #21

Open
JanNash opened this issue Dec 8, 2016 · 1 comment
Open

Switch from UIImage(named: ) to UIImage(contentsOfFile:) #21

JanNash opened this issue Dec 8, 2016 · 1 comment

Comments

@JanNash
Copy link
Collaborator

JanNash commented Dec 8, 2016

Description copied from the similar resmio-Tables ticket:

As it is explained here and here,
UIImage(named:) caches the imageData and does seemingly not react to memory warnings.

We should test if that's still the case in iOS 9/10 and if so, switch over to using UIImage(contentsOfFile:) (where we should also test for its memory management)

We should also implement our own caching AND (most importantly) a method to purge the cache on memory warnings, maybe even listen to memory warnings internally and manage the cache flushing internally, too.

@JanNash
Copy link
Collaborator Author

JanNash commented Aug 8, 2018

Check if this is still valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant