Jump to content

Help with UIAlertController


Go to solution Solved by litox,

3 posts in this topic

Recommended Posts

Posted
%hook AppDelegate

-(void)applicationDidBecomeActive:(UIApplication *)application {
  UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Title" message:@"App opened!" preferredStyle:UIAlertControllerStyleAlert];
  UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil];
  [alert addAction:okAction];
  [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:alert animated:YES completion:nil];
}
%end

can someone check the code please, does not work.. im hooking the right class and method

Posted

Try searching for didbecomeactive and hook every classes

  • Solution
Posted (edited)
40 minutes ago, Laxus said:

Try searching for didbecomeactive and hook every classes

The hook works on older versions, the latest update just don’t work 

Updated by litox

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines