逆向系统的一个类,为什么带下划线的方法不能调用呢?

我用Cycript找到了这个类的地址,没带下划线的方法都可以调用的。为什么带下划线的方法却不能调用呢。如图:

Cycript的提示:

cy# [#0x12856e7a0 setInteracting:@YES]
throw new Error("unrecognized selector setInteracting: sent to object 0x12856e7a0") /*
    objc_msgSend@[native code] */
cy# [#0x12856e7a0 handleGesture:nil]
throw new Error("unrecognized selector handleGesture: sent to object 0x12856e7a0") /*
    objc_msgSend@[native code] */

你调用的方法为什么不带下划线试试…

1 个赞

之前下划线也试了不行,我昨晚重新attach了一次,又可以调用了。:joy: