Created
January 9, 2012 09:34
-
-
Save gekitz/1582190 to your computer and use it in GitHub Desktop.
Memory Warning Fake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) performFakeMemoryWarning { | |
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; | |
SEL memoryWarningSel = @selector(_performMemoryWarning); | |
if ([[UIApplication sharedApplication] respondsToSelector:memoryWarningSel]) { | |
[[UIApplication sharedApplication] performSelector:memoryWarningSel]; | |
NSLog(@"Memory Warning!!"); | |
} | |
[pool release]; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment