Created
May 27, 2017 03:44
-
-
Save ArsnealX/73b2b9abbe43ed0c2bc030c4c4fae440 to your computer and use it in GitHub Desktop.
UIDebuggingInformationOverlay
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
- (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