Guest User

Untitled

a guest
Jul 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. SwizzleMethod([NSBundle mainBundle], @selector(objectForInfoDictionaryKey:), (IMP) (MyMainBundle$myObjectForInfoDictionaryKey$), "HOOK_");
  2.  
  3. static id MyMainBundle$myObjectForInfoDictionaryKey$(id MyMainBundle, SEL sel, id obj) {
  4. NSLog(@"\n\n NSBundle mainBundle Hooked! \n\n");
  5. [[NSNotificationCenter defaultCenter] postNotificationName:@"TJCAdController_Hooked" object:obj];
  6. return [TJCAdController performSelector:@selector(HOOK_objectForInfoDictionaryKey:) withObject: obj];
  7. }
Add Comment
Please, Sign In to add comment