前言:我们如果需要分析一个按钮的点击事件 需要拿到点击事件的方法需要怎么做呢?
1)ida静态分析
2)通过动态的拿到按钮及其响应链
ida就不分析了 这里记录下第二种方法
1.首先看下当前页面的结构
po [UIApplication sharedApplication].keyWindow.recursiveDescription
2.拿到点击事件的响应层
po [0x102a0b510 allTargets]
3)
po [0x10500ef10 allControlEvents]
4)拿到点击事件的方法
po [0x10500ef10 actionsForTarget:0x104702160 forControlEvent:0x0000000000000040]










网友评论