Created
June 26, 2020 22:36
-
-
Save i0sa/9850a3dea6045c6c8f0bdf1b4b13b079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%hook HomeViewController | |
-(void)viewDidLoad{ | |
%orig; | |
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"My Alert" | |
message:@"This is an injected alert." | |
preferredStyle:UIAlertControllerStyleAlert]; | |
[self presentViewController:alert animated:YES completion:nil]; | |
} | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment