Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SwizzleMethod([NSBundle mainBundle], @selector(objectForInfoDictionaryKey:), (IMP) (MyMainBundle$myObjectForInfoDictionaryKey$), "HOOK_");
- static id MyMainBundle$myObjectForInfoDictionaryKey$(id MyMainBundle, SEL sel, id obj) {
- NSLog(@"\n\n NSBundle mainBundle Hooked! \n\n");
- [[NSNotificationCenter defaultCenter] postNotificationName:@"TJCAdController_Hooked" object:obj];
- return [TJCAdController performSelector:@selector(HOOK_objectForInfoDictionaryKey:) withObject: obj];
- }
Add Comment
Please, Sign In to add comment