Jump to content

7 posts in this topic

Recommended Posts

Posted

Please help me fix these Theos errors in NewTerm 2:

0QcUd6C.jpg

n4tcwzw.jpg

lN6ZD3I.jpg

I1Yu9qn.jpg

1KB2HTW.jpg

qWkMllD.jpg

Tweak.xm:

 

#import <Foundation/Foundation.h>

#import <UIKit/UIKit.h>

#import <substrate.h>

 

%hook BetternetUser

-(bool) isPremium {

return TRUE;

}

%end

 

%hook BetternetUser

 

-(void) setIsPremium:(bool)arg1 {

%orig(arg1);

arg1 = TRUE;

}

%end

 

 

%hook AppDelegate // Change this with your Application's Delegate. AppController, UnityAppController, GameDelegate etc.

 

- (BOOL)application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 { // Popup only once at each launch of the app.

UIAlertView *igcredits = [[UIAlertView alloc] initWithTitle:@"@@PROJECTNAME@@ Cheats" 

                                                  message:@"\n@@PROJECTNAME@@ Cheats by @@@User@@ for iOSGods.com"

                                                 delegate:self 

                                        cancelButtonTitle:@"Thanks" 

                                        otherButtonTitles:@"Visit Us", nil]; 

[igcredits show];

[igcredits release]; 

return %orig();

}

 

%new

-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {

 

NSString *button = [alertView buttonTitleAtIndex:buttonIndex];

 

    if([button isEqualToString:@"Visit Us"])

    {

        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://iosgods.com/"]];                                                                                

    }

}

%end

 

Posted

Hey!

The issues are because you're using UIAlertView which has been replaced since iOS 9 to UIAlertController.

You can either remove the UIAlertView code or change to the new UIAlertController. :)

Posted (edited)
  On 7/15/2018 at 7:17 PM, DiDA said:

Hey!

The issues are because you're using UIAlertView which has been replaced since iOS 9 to UIAlertController.

You can either remove the UIAlertView code or change to the new UIAlertController. :)

Expand  

You mean to change every single word of UIAlertView to UIAlertController in the Tweak.xm file?

Updated by The Epic Gamer
Posted
  On 7/15/2018 at 10:26 PM, The Epic Gamer said:

Ok, so I got the new code, where do I replace it in the tweak.xm (sorry for asking a lot, i’m learning)

 

Expand  

Same place as UIAlertView, just replace it with the new code.

Posted (edited)
  On 7/15/2018 at 10:26 PM, DiDA said:

Same place as UIAlertView, just replace it with the new code.

Expand  

 can you give me the whole tweak.xm code so I know what to do, again i’m sorry

Updated by The Epic Gamer

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