[求助]使用MSHookMessageEx hook失败

语句如下
MSHookMessageEx(objc_getMetaClass(“VideoCamera”),@selector(captureOutput:didOutputSampleBuffer:fromConnection:),(IMP)&MycaptureOutput_didOutputSampleBuffer_fromConnection_,(IMP*)&oldMycaptureOutput_didOutputSampleBuffer_fromConnection_);

MSHookMessageEx确实被执行了,
但是hook失败了原来的方法被调用的时候后并没有被转到MycaptureOutput_didOutputSampleBuffer_fromConnection_

请问这个怎么解决?

已经解决了
使用getClass就可以了