MrLu / UIDebuggingTool

One file to enable UIDebuggingInformationOverlay for iOS 10 & 11

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIDebuggingTool

A tool to enable UIDebuggingInformationOverlay for iOS 10 & 11

Install

  • Copy UIDebuggingInformationOverlay+Enable.m to your project.
  • Add the following code to [AppDelegate application:didFinishLaunchingWithOptions:]
 #if DEBUG
 id overlayClass = NSClassFromString(@"UIDebuggingInformationOverlay");
 [overlayClass performSelector:NSSelectorFromString(@"prepareDebuggingOverlay")];
 #endif

Usage

  • Just tap the status bar with two fingers to show the tool. No need to call toggleVisibility.

安装

  • 将UIDebuggingInformationOverlay+Enable.m文件添加到你的项目中
  • 在[AppDelegate application:didFinishLaunchingWithOptions:]方法中加入以下代码:
 #if DEBUG
 id overlayClass = NSClassFromString(@"UIDebuggingInformationOverlay");
 [overlayClass performSelector:NSSelectorFromString(@"prepareDebuggingOverlay")];
 #endif

使用

Links

About

One file to enable UIDebuggingInformationOverlay for iOS 10 & 11

License:MIT License


Languages

Language:Objective-C 100.0%