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

uiimage imagenamed 不是永久驻留内存的 #3

Open
linlinyao1 opened this issue May 4, 2016 · 1 comment
Open

uiimage imagenamed 不是永久驻留内存的 #3

linlinyao1 opened this issue May 4, 2016 · 1 comment

Comments

@linlinyao1
Copy link

先上苹果文档https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/index.html#//apple_ref/occ/clm/UIImage/imageNamed:

内存紧张的时候系统会自动清理掉这部分内存,如果这部分内存没有清理掉,那只可能能是你自己hold住了,需要检查下代码

@Magic-Unique
Copy link
Owner

是这样的。如果有立即销毁图像的需求的话就可以用它了。

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

No branches or pull requests

2 participants