Jump to content

UIAlertView not showing in-app


Go to solution Solved by Rook,

35 posts in this topic

Recommended Posts

Posted

Well not just one post solved it tho a lot of them did

What's the current working UIAlertView code in your Tweak.xm? :)

Posted (edited)

What's the current working UIAlertView code in your Tweak.xm? :)

Tweak.xm

#include <UIKit/UIKit.h>

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

-(BOOL)isFree {
return true;
}

%end

%hook AutoRapAppDelegate
-(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];
%orig();
}
%end
MakeFile:

ARCHS = armv7 arm64

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"
Updated by Chrizk0
Posted

you just make your own answer -_-

His main problem was that he spelled the AppDelegate wrong.. :3

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