Jump to content

UIAlertView not showing in-app


Go to solution Solved by Rook,

35 posts in this topic

Recommended Posts

Posted

Okay well I made a simple MS tweak, I'm trying to make an AlertView for my hack, im used to not doing them because I never wanted to.

 

I am getting no errors when compiling, just as usual but the UIAlertView never popped up when the hack was installed.

 

Here is my tweak.xm & MakeFile, any solutions?

 

Tweak.xm:

#include <UIKit/UIKit.h>

%hook AutoRapStyle
-(BOOL)free {
return true;
}

-(BOOL)isFree {
return true;
}

%end

%hook AutoRapAppDelgate
-(void)applicationDidBecomeActive:(id)arg {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"AutoRap Hack" 
                                                message:@"Hack made by Chrizk0, Enjoy!" 
                                               delegate:nil 
                                      cancelButtonTitle:@"Thanks!" 
                                      otherButtonTitles:nil];
[alert show];
[alert release];
}
%end
MakeFile:

ARCHS = armv7 arm64
TARGET = iphone:clang:8.1

include theos/makefiles/common.mk

TWEAK_NAME = AutoRapHack
AutoRapHack_FILES = Tweak.xm
AutoRapHack_FRAMEWORKS = UIKit

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
        install.exec "killall -9 SpringBoard"
Posted

It's because your SDK 8.1 doesn't have all the UI stuff :3

 

22MB do not contain all the headers, they are just the headers which actually have to be replaced within 7.1 and below

Posted (edited)

Is the AppDelegate correct?

I changed it to AutoRapDelegate, still nothing.

It's because your SDK 8.1 doesn't have all the UI stuff :3

 

22MB do not contain all the headers, they are just the headers which actually have to be replaced within 7.1 and below

So no one can make an alert on 8.1.2? Updated by Chrizk0
Posted

actually the reason for the comparatively "small" sdks for iOS 8 < is because apple has stripped the binaries of any info, making them useless, you should still have all the errors, but i suggest you use the iOS 7.1 SDK, which has no issues like this, and will run on iOS 8 just fine. 

Posted

I don't think this is an SDK related issue. I just tested on on 8.1.2 with 7.1 SDK and I get nothing. :3

 

 

Going to try another delegate.

Posted (edited)

I just realized why:

 

add this:

%orig();
Like this? & I'll remove the space above it replacing it with a }wQPXPhc.jpg Updated by Chrizk0

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