Advertisement
Leonne

Writing MobileSubstrate Tweaks for iOS.

Jul 2nd, 2012
2,394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /***
  2.  TUTORIAL BY ANDY IBANEZ (@Leonnears).
  3.  This is the tutorial I wrote about writing MobileSubstrate tweaks for iOS. You can find it on my tumblr blog (leonnears.tumblr.com).
  4.  You can also follow me on Twitter (@Leonnears) to receive updates when I write anything in my new blog, including when I post new tutorials and so on. I don't only tweet programming related stuff so don't follow me if you expect to only see programming or tech related stuff. ;)
  5.  */
  6.  
  7. #import <SpringBoard/SpringBoard.h>
  8. #import <UIKit/UIKit.h>
  9.  
  10. %hook SBApplicationIcon
  11. -(void)launch
  12. {
  13. NSString *appName = [self displayName];
  14. NSString *message = [NSString stringWithFormat:@"The app %@ has been launched", appName, nil];
  15.     UIAlertView *alert = [[UIAlertView alloc] initWithTitle:appName message:message delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
  16.     [alert show];
  17.     [alert release];
  18.     %orig;
  19. }
  20. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement