Wednesday, 13 January 2021

Change where popup shows

Hello can someone please help with my tweak. I recently made menu and popup for my tweak. Everything works fine.. but I want to change somethings but I don’t know how exactly.. I want to make the popup show when I toggle on in settings menu. Instead of when I open app , how would I do ?Here is my code.. hopefully one of you know HBPreferences *preferences; BOOL Pro; %hook TMProSubManager - (bool)haveProSubscription { if (Pro) { return TRUE; } if (Pro) { return %orig; } else return %orig; } %end %ctor { preferences = [[HBPreferences alloc] initWithIdentifier:@"com.3xtc.popup"]; [preferences registerBool:&Pro default:NO forKey:@"Pro"]; } %hook AppDelegate -(void)applicationDidBecomeActive:(id)arg1 { %orig; #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"NO PIRATE NO!" message:@"PLEASE DONATE IT TOOK ME AGES TO MAKE THIS😭" delegate:nil cancelButtonTitle:@"Disable!" otherButtonTitles:nil]; [alert show]; [alert release]; #pragma clang diagnostic pop } %end

from iOSGods RSS Feed https://ift.tt/39wGR2z

No comments:

Post a Comment