两个手指点状态栏 唤出。
OC:
id overlayClass = NSClassFromString(@"UIDebuggingInformationOverlay");
[overlayClass performSelector:@selector(prepareDebuggingOverlay)];
id overlay = [overlayClass performSelector:@selector(overlay)] ;
[overlay performSelector:@selector(toggleVisibility)];
Swift:
let overlayClass = NSClassFromString("UIDebuggingInformationOverlay") as? UIWindow.Type
_ = overlayClass?.perform(NSSelectorFromString("prepareDebuggingOverlay"))
let overlay = overlayClass?.perform(NSSelectorFromString("overlay")).takeUnretainedValue() as? UIWindow
_ = overlay?.perform(NSSelectorFromString("toggleVisibility"))