Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***
- TUTORIAL BY ANDY IBANEZ (@Leonnears).
- This is the tutorial I wrote about writing MobileSubstrate tweaks for iOS. You can find it on my tumblr blog (leonnears.tumblr.com).
- 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. ;)
- */
- #import <SpringBoard/SpringBoard.h>
- #import <UIKit/UIKit.h>
- %hook SBApplicationIcon
- -(void)launch
- {
- NSString *appName = [self displayName];
- NSString *message = [NSString stringWithFormat:@"The app %@ has been launched", appName, nil];
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:appName message:message delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
- [alert show];
- [alert release];
- %orig;
- }
- %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement