我想挂钩MPIncomingPhoneCallController
iOS 5 中的类方法,以便在来电时执行某些操作。我用
Class _$MPIncomingPhoneCallController = objc_getClass("MPIncomingPhoneCallController");
MSHookMessage(_$MPIncomingPhoneCallController,
@selector(updateLCDWithName:label:breakPoint:),
(IMP) &Hook_LCD,
"pre_");
钩住updateLCDWithName:label:breakPoint:
,但它失败了。
我怎样才能做到这一点?