Files
2024-03-24 21:08:01 +07:00

23 lines
849 B
Plaintext

#import <SpringBoard/SpringBoard.h>
%hook SpringBoard
-(void) applicationDidFinishLaunching:(id)arg {
%orig(arg);
if (@available(iOS 8.0, *)) {
UIAlertController *lookWhatWorks = [UIAlertController alertControllerWithTitle:@"simject Example Tweak"
message:@"It works! (ノ´ヮ´)ノ*:・゚✧"
preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *ok = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil];
[lookWhatWorks addAction:ok];
[self.keyWindow.rootViewController presentViewController:lookWhatWorks animated:YES completion:nil];
} else {
UIAlertView *lookWhatWorks = [[UIAlertView alloc] initWithTitle:@"simject Example Tweak"
message:@"It works! (ノ´ヮ´)ノ*:・゚✧"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[lookWhatWorks show];
}
}
%end