Search code examples
iphoneiosmemory-managementios4

is it possible to determine the level of memory warnings?


I am receiving memory warnings in didReceiveMemoryWarning. I know memory warnings have different levels like level-1,level-2. Is there any way determine the warning level? Example:

if(warning level == 1)
    <blah>

Solution

  • I know there is no way to (except the private/undocumented API) know the memory level warning. So you should not use that.

    Check out this question to see undocumented API to get memory warning level.