Skip to content

hwzss/TestUIDebuggingInformationOverlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TestUIDebuggingInformationOverlay

Learn to use 'UIDebuggingInformationOverlay' class once you’ve called [UIDebuggingInformationOverlay prepareDebuggingOverlay], you can just tap the status bar with two fingers to show the console. So,in the demo,you can touch the green view, and tap the status bar with two fingers to show the console.

运行程序,点击绿色view。然后再两个手指tap下状态栏就可以了

详细可见:文章

补充(时间:2017-07-12)

有读者提出在iOS11上不会弹出调试视图,于是我去调试了下,确实不行了,但是UIDebuggingInformationOverlay这个类还在,而且他的prepareDebuggingOverlay方法也在,这些可以用runtime来获取到。但是调用后没有效果了,所以猜想可能是Apple人员在iOS11上对方法内部或者某些地方进行了调整,现在只能在iOS10.3以下使用查看。

About

learn to use UIDebuggingInformationOverlay class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published