Skip to content
Guest Big Announcement

UIAlertView Pop Up doesn't want to work

Featured Replies

I am trying to insert a UIAlert pop up. I hooked it to applicationDidBecomeActive and when I compile it, there are no errors. The pop up appears but after I press the button for it to go away, it just leaves a black screen with a status bar.

 

My makefile has :

NAMEHERE_FRAMEWORKS = UIKit

 

My Tweak.xm has:

#import <UIKit/UIKit.h>

 

and this is the code in Tweak.xm:

%hook AppDelegate

-(void)applicationDidBecomeActive:(id)argument {

UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Tittle" message:@"A message here" delegate:nil cancelButtonTitle:@"Thanks!" otherButtonTitles:nil];

[alert show];

[alert release];

}

%end

 

I'm on iOS 9.3.3

Solved by Rook

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.