Hi everyone!
In my applciation I have a class with method:
- (void)someMethod {
//Code of implementation.
}
This class I use a a base class to another class. Where this method has implementation like this:
- (void)someMethod {
[super someMethod]
//Code of implementation.
}
As you can see second method has a call of method from based class. The problem is when I try to use runtime method_setImplementation to add dynamic code to this method I have a crash with recursion. But when I comment the line:
[super someMethod]
in second class all works fine.
How I can fix this without comment line? Thanks for the help.