文件名称:ISInvocationHookProxy:挂钩目标的每个 NSInvocation 的代理对象
文件大小:11KB
文件格式:ZIP
更新时间:2024-07-26 01:48:55
Objective-C
ISInvocationHookProxy 挂钩目标的每个 NSInvocation 的代理对象。 用法 NSString *object = [[ NSString alloc ] init ]; ISInvocationHookProxy *proxy = [[ISInvocationHookProxy alloc ] initWithTarget: object]; proxy.hookBlock = ^( NSInvocation *invocation) { // will be called when [(NSString *)proxy length]; is executed }; [( NSString *)proxy length ]; 覆盖调用的返回值 NSString *object = @" foo " ; ISInvocationHookProxy
【文件预览】:
ISInvocationHookProxy-master
----ISInvocationHookProxy.podspec(2KB)
----ISInvocationHookProxyTests()
--------Info.plist(740B)
--------ISInvocationHookProxyTests.m(1KB)
----Makefile(210B)
----.travis.yml(136B)
----ISInvocationHookProxy.xcodeproj()
--------xcshareddata()
--------project.pbxproj(15KB)
----README.md(2KB)
----ISInvocationHookProxy()
--------ISInvocationHookProxy.h(364B)
--------Info.plist(813B)
--------ISInvocationHookProxy.m(623B)