#ifndef __OPTIMIZE__ #define OPEN_MEMORY_WARNING_TEST YES //打開內存警告測試開關 #endif
- (void)simulateMemoryWarning
{
if (OPEN_MEMORY_WARNING_TEST == NO) {
return;
}
[[UIApplication sharedApplication] _performMemoryWarning];
}
[[MemoryWarningTest sharedInstance] simulateMemoryWarning];