How to handle the low memory warning
1 answer
It looks like you are loading files directly into memory. This will be a problem because you don't have enough memory to load the entire file.
The strategy you should take is that when the file is loaded, it continues to write chunks of it to disk, freeing up memory in the process.
If you are using NSURLSession, there is a parameter that you can use to do this with minimal effort. Please post your code for in-depth reference.
0
source to share