I'm using a plugin,there is a method "A" in the plugin's pluginClass. if "A" is called ,I want to call "B" in myCalss.Such as:
-(void)A{
[myClass B];
}
But I don't want to modify the code in pluginClass. Is there any way to add an observer to a method or similar? Thank u.
The only acceptable option I can think of is to subclass the class from the plugin, and then within your subclass over the target method and forward it: