Skip to content
Guest Big Announcement

Uialertview message (Popup message)

Featured Replies

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

Solved by castix

  • Author

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

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];
}
  • Author

 

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?

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

Updated by Dex

  • Solution

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

  • Author

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

but the button for "More Hacks For This Game" when i clicked it opened up a wed page

 

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"]];
}

ok ill try that lol

  • Author

but the button for "More Hacks For This Game" when i clicked it opened up a wed page

ok ill try that lol

it didnt work imma just forget it 

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.