An open API service indexing awesome lists of open source software.

https://github.com/aryaxt/ocmethodinterceptor

NSObject category to intercept methods
https://github.com/aryaxt/ocmethodinterceptor

Last synced: 5 months ago
JSON representation

NSObject category to intercept methods

Awesome Lists containing this project

README

          

OCMethodInterceptor
===================

NSObject category to intercept methods.
Allows intercepting before or after original method calls, or it gives an option to completely override the original call.

Examples
-------------------------
```objective-c
Car *car = [[Car alloc] init];

[car interceptMethod:@selector(startEngine) withExecuteBlock:^(id instance){
NSLog("Intercepted startEngine method");
}andExecutionType:BlockExecutionTypeBeforeOriginalCall];

[car startEngine];
```