Skip to content

Instantly share code, notes, and snippets.

@ArsnealX
Created May 27, 2017 03:44
Show Gist options
  • Save ArsnealX/73b2b9abbe43ed0c2bc030c4c4fae440 to your computer and use it in GitHub Desktop.
Save ArsnealX/73b2b9abbe43ed0c2bc030c4c4fae440 to your computer and use it in GitHub Desktop.
UIDebuggingInformationOverlay
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
#if DEBUG
Class debugWindow = NSClassFromString(@"UIDebuggingInformationOverlay");
SEL selector = NSSelectorFromString(@"prepareDebuggingOverlay");
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[debugWindow performSelector:selector];
#pragma clang diagnostic pop
#endif
return YES;
}
// just tap the status bar with two fingers to show the console
// http://ryanipete.com/blog/ios/swift/objective-c/uidebugginginformationoverlay/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment