Skip to content

Instantly share code, notes, and snippets.

@Li-blog
Created August 6, 2016 05:35
Show Gist options
  • Save Li-blog/c1370e2844f73156a87c62b8a2128fa6 to your computer and use it in GitHub Desktop.
Save Li-blog/c1370e2844f73156a87c62b8a2128fa6 to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
%hook SpringBoard
- (void)applicationDidFinishLaunching: (id)application {
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Hello World." message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
[alert release];
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment