Skip to content

Instantly share code, notes, and snippets.

@samjarman
Created July 31, 2017 03:13
Show Gist options
  • Save samjarman/8091e8e85d8a9de282ed9458a71e9092 to your computer and use it in GitHub Desktop.
Save samjarman/8091e8e85d8a9de282ed9458a71e9092 to your computer and use it in GitHub Desktop.
Force kill iOS app programmatically
@interface UIApplication(InternalAppAdditions)
- (void)terminateWithSuccess;
@end
#warning: This is private API. Do not try to submit this line to TestFlight or the App Store.
[[UIApplication sharedApplication] terminateWithSuccess];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment