Jump to content

4 posts in this topic

Recommended Posts

Posted
1 hour ago, RudePerson said:

Try a popup where you hook the AppDelegate

idk how to but it works with springboard lol but doesnt work with any of my other games. and btw this game does have UIKit

 

Posted

Should look something like this.

#import <substrate.h>
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
  
%hook AppDelegate

-(bool) application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {
UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"Title Text Here"
                          message:@"Message Text Here"
                         delegate:self 
                                        cancelButtonTitle:@"Ok Button Text" 
                                        otherButtonTitles:@"Link Button Text", nil]; 
[igcredits show];
[igcredits release]; 
return %orig();
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
    if([button isEqualToString:@"Link Button Text"])
    {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iosgods.com"]];                                        
    }
}
%end
ARCHS = armv7 arm64

include theos/makefiles/common.mk

TWEAK_NAME = MyTweak
MyTweak_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

MyTweak_FRAMEWORKS = UIKit

CFLAGS = -w

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