cycript的使用

2018-10-22  本文已影响10人  rockyMJ

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()

上一篇 下一篇

猜你喜欢

热点阅读