1:首先手机上安装cycript
2:确保ssh的连接
3:cycript -p 项目的名字(注意不是APP的名字啊)
UIApp ->[UIApplication shareapplication]
choose(UILabel) -> 显示当前的label
打印当前页面结构和ViewController的继承关系 有时候会打印不完整 可以用 Reveal 查看
UIApp.keyWindow.recursiveDescription().toString()
[[[UIWindow keyWindow] rootViewController] _printHierarchy].toString()
[[UIApp keyWindow] _autolayoutTrace].toString()
网友评论