mirror of
https://github.com/akemin-dayo/simject.git
synced 2025-11-01 08:55:00 +00:00
23 lines
849 B
Plaintext
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
|