Jump to content

Uialertview message (Popup message)


Go to solution Solved by castix,

15 posts in this topic

Recommended Posts

Posted

28xZM0h.jpg

 

 

 

How do I make the text center like it is on here and how do I add a link to a button and add a 2nd button

Sorry for a short topic >_<

 

Thanks so much in advance

Posted

You'd probably think that I'm here to give you an answer but idk about this. D:

Good luck tho <3

Lol it's okay I'll just ask DiDA to lock it or remove it since ppl have problems whenever I post topic. All I'm tryin to do is Learn how to make it
Posted

How to make the basic alert

%hook AppDelegate      //You have to check the object class for the game you are hacking
- (void)applicationDidBecomeActive:(id)fp8
{
UIAlertView*alert =[[UIAlertView alloc] initWithTitle:@"Header Textline" message:@"Message"
delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];  // edit otherButtons to add as many as you want 
[alert show];
[alert release];
}
Posted

 

How to make the basic alert

%hook AppDelegate      //You have to check the object class for the game you are hacking
- (void)applicationDidBecomeActive:(id)fp8
{
UIAlertView*alert =[[UIAlertView alloc] initWithTitle:@"Header Textline" message:@"Message"
delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];  // edit otherButtons to add as many as you want 
[alert show];
[alert release];
}

but say i wanna add a visit button how do i add a link to it?

  • Solution
Posted (edited)

the same way but you have to declare the webpage button in your PreferenceBundle.mm then.

 

Here is the raw URL button

/* Inside your Tweak.xm */
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"HeaderAgain" message:@"Webpage" 
delegate:self cancelButtonTitle:@"L33TPr0xY sucks" otherButtonTitles: nil];
[alert show];
[alert release];
}

/*Inside your PreferenceBundle.mm */
(void)alertView: (UIAlertView *)alertView clickedButtonAtIndex: (NSInteger)buttonIndex
{
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.Somewebsite.com"]];
}

 

 


if u want a vist button u would have to make a patcher and add new code to some files

 

Wrong.

Updated by castix

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