Jump to content

[Tutorial] How to make your UIAlertView Popup only appear once!


95 posts in this topic

Recommended Posts

Posted

Already know that.

 

Edit:

Just use this code

%hook AppDelegate

-(BOOL) application:(id)fp8 didFinishLaunchingWithOptions:(id)fp12 {

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"xxxx Hack"
message:@"Hacked By xxxx" delegate:nil cancelButtonTitle:@"Enjoy!"
otherButtonTitles:nil];

[alert show];
[alert release];

return %orig;
}

%end
This will show the popup everytime you open a game.

 

I try to put that code on my Tweak.xm, like this

 

%hook BBMPingLimitHelper

-(bool) isLimitReached {
	if(GetPrefBool(@"kPing")) {
	return false;
}
return %orig;
}
%end

%hook AppDelegate

-(bool) application:(id) fp8 didFinishLaunchingWithOption:(id) fp12 {
	
	UIAlertView *alert = [[UIAlertView 
	alloc ] initWithTitle:@"Hallo" message:@"This is test alert" delegate:nil cancelButtonTitle:@"Thanks" 
	otherButtonTitles:nil];
	
	[alert show];
	[alert release];
	
	return %orig;
	
}
%end

But I have no luck, am I missing something or wrong?

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