Skip to content
Guest Big Announcement

UIAlertView not showing in-app

Featured Replies

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"

Solved by Rook

  • Replies 34
  • Views 6.6k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • It's because your SDK 8.1 doesn't have all the UI stuff   22MB do not contain all the headers, they are just the headers which actually have to be replaced within 7.1 and below

  • search for applicationdidbecomeactive in Flex 2.............

  • AnotherLurker
    AnotherLurker

    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 y

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

  • Author

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

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. 

I changed it to AutoRapDelegate, still nothing.So no one can make an alert on 8.1.2?

ofc u can.... Use Flex 2 to find the AppDelegate and use iOS 7.1 SDKs :)
  • Author

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

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.