Jump to content

UIAlertView with a link?


Go to solution Solved by Rook,

10 posts in this topic

Recommended Posts

Posted (edited)

I need to make a button in my UIAlertView thats says: Support the author. I need it to redirect to an adlink :troll:

Also, could you please code it in objective c. I'm n00b at c++ :3 Thank you in advance

 

-KingRalph

Updated by KingRalph
Posted

An idea from me: Instead leading to an advert you should use your PayPal donation link ;) However replace the 'iOSGods.com' with whatever comes in your mind

/* Inside your Tweak.xm */

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Example"
message:@"Example Text Here"
delegate:self
cancelButtonTitle:@"Dismiss"
otherButtonTitles:@"Website",nil];
[alert show];
}

 /*Inside your PreferenceBundle.mm */


- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

{
    NSString *title = [alertView buttonTitleAtIndex:buttonIndex];
    if([title isEqualToString:@"Website"])
    {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSGods.com"]];
    }
}
Posted (edited)

:o

I'm n00b. I know :3

what he said

Thanks for for your help!

+1

I would make a paypal account but

1. my mom doesn't want me to hack so she won't let me :3

2. I'm underage

Updated by KingRalph
Posted (edited)

An idea from me: Instead leading to an advert you should use your PayPal donation link ;) However replace the 'iOSGods.com' with whatever comes in your mind

 

/* Inside your Tweak.xm */UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Example"message:@"Example Text Here"delegate:selfcancelButtonTitle:@"Dismiss"otherButtonTitles:@"Website",nil];[alert show];}
/*Inside your PreferenceBundle.mm */- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{	NSString *title = [alertView buttonTitleAtIndex:buttonIndex];	if([title isEqualToString:@"Website"])	{		[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSGods.com"]];	}}
Don't I need to hook a class as well?

O.i

 

------EDIT------

I see how to use it now

Updated by KingRalph
Posted (edited)

@@castix if you have the alert in your tweak.xm why would you put the clickedButton method in the .mm of the pref bundle?

Before you close the hook of whatever class of the method the UIAlert is in you need to put 

%hook SomeClass
 
-(void)someMethod
{
 
//UIAlertView code here
}
 
%new
- (void)alertView :(UIAlertView *)alertView clickedButtonAtIndex :(NSInteger)buttonIndex
{   
     if([[alertView buttonTitleAtIndex:buttonIndex] isEqualToString :@"BUTTONTITLE"])    
     {       
          [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSGods.com"]];    
    }
}

%end
 
Updated by Gh0stByte
Posted

 

@@castix if you have the alert in your tweak.xm why would you put the clickedButton method in the .mm of the pref bundle?

 

Before you close the hook of whatever class of the method the UIAlert is in you need to put 

%hook SomeClass
 
-(void)someMethod
{
 
//UIAlertView code here
}
 
%new
- (void)alertView :(UIAlertView *)alertView clickedButtonAtIndex :(NSInteger)buttonIndex
{   
     if([[alertView buttonTitleAtIndex:buttonIndex] isEqualToString :@"BUTTONTITLE"])    
     {       
          [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSGods.com"]];    
    }
}

%end
 

I was wondering the same thing because what if I want to make a tweak, not a patcher?

+1

Posted (edited)

what he said

Is this how to use it?

 

%hook AppController

-(void)applicationDidBecomeActive:(id)arg {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Impossible flappy hack" message:@"Hacked by KingRalph!" delegate:nil cancelButtonTitle:@"Thank You!" otherButtonTitles:nil];
        [alert show];
        [alert release];
        %orig;
}

%new

- (void)alertView :(UIAlertView *)alertView clickedButtonAtIndex :(NSInteger)buttonIndex
{   
     if([[alertView buttonTitleAtIndex:buttonIndex] isEqualToString :@"BUTTONTITLE"])    
     {       
          [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSGods.com"]];    
    }
}

%end 
Updated by KingRalph
  • Solution
Posted

Is this how to use it?

 

%hook AppController

-(void)applicationDidBecomeActive:(id)arg {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Impossible flappy hack" message:@"Hacked by KingRalph!" delegate:nil cancelButtonTitle:@"Thank You!" otherButtonTitles:nil];
        [alert show];
        [alert release];
        %orig;
}

%new

- (void)alertView :(UIAlertView *)alertView clickedButtonAtIndex :(NSInteger)buttonIndex
{   
     if([[alertView buttonTitleAtIndex:buttonIndex] isEqualToString :@"BUTTONTITLE"])    
     {       
          [[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://iOSGods.com"]];    
    }
}

%end 

You have to add two buttons otherwise user won't be able to close the popup and play the game normally because the one button you will have will redirect to the website.

%hook SexyApplicationDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Title of the popup" 
					          message:@"Hacked by KingRalph for iOSGods.com!!" 
                                                 delegate:self 
  					cancelButtonTitle:@"Close" 
  					otherButtonTitles:@"Visit Us", nil]; 
[credits show];
[credits release]; 
return %orig;
}
 
%new
-(void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
 
NSString *button = [alertView buttonTitleAtIndex:buttonIndex];
 
	if([button isEqualToString:@"Visit Us"])
	{
		[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.iOSGods.com/"]];                                                                                
	}
}
%end

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
  • Our picks

    • Rival Stars Horse Racing Cheats v1.64.1 +2
      Modded/Hacked App: Rival Stars Horse Racing by Prodigy Design Limited T/A Sidhe Interactive
      Bundle ID: com.pikpok.hrc.iosstore
      iTunes Store Link: https://apps.apple.com/us/app/rival-stars-horse-racing/id1215477266?uo=4&at=1010lce4


      Hack Features:
      - Infinite Sprint
      - Disable AI Sprint


      iOS Hack Download Link: https://iosgods.com/topic/132378-arm64-rival-stars-horse-racing-cheats-all-versions-2/
        • Thanks
      • 335 replies
    • MA 2 – President Simulator v1.0.31 +4++ Jailed Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 2 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage2
      iTunes Store Link: https://apps.apple.com/us/app/ma-2-president-simulator/id6503986463?uo=4

       


      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 Jailbreak iOS hacks: [Mod Menu Hack] MA 2 – President Simulator v1.0.24 +4++ Cheats [ Unlimited Everything ] - Free Jailbroken Cydia Cheats - iOSGods
      🤖 Modded Android APKs: https://iosgods.com/forum/68-android-section/
      • 16 replies
    • MA 2 – President Simulator v1.0.31 +4++ Cheats [ Unlimited Everything ]
      Modded/Hacked App: MA 2 – President Simulator By OXIWYLE TOV
      Bundle ID: com.oxiwyle.modernage2
      iTunes Store Link: https://apps.apple.com/us/app/ma-2-president-simulator/id6503986463?uo=4

       


      🚀 Hack Features

      - Unlimited Everything -> Will increase instead of decrease.
      -- Premium Enabled
      -- Acceleration Enabled
      -- No Ads Enabled


      🍏 For Non-Jailbroken & No Jailbreak required hacks: [IPA Mod Menu] MA 2 – President Simulator v1.0.24 +4++ Jailed Cheats [ Unlimited Everything ] - Free Non-Jailbroken IPA Cheats - iOSGods
      🤖 Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      • 13 replies
    • The Wolf: Animal Hunting Game v4.0.2 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: The Wolf: Online RPG Simulator By SWIFT APPS SP Z O O SPOLKA KOMANDYTOWA
      Bundle ID: com.swiftappskom.thewolfrpg
      iTunes Store Link: https://apps.apple.com/us/app/the-wolf-online-rpg-simulator/id1189578604?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Jailbreak required hack(s): [Mod Menu Hack] [ FREE ] The Wolf: Online RPG Simulator v3.4.0 +1++ Cheats [ Unlimited Currencies ] - Free Jailbroken Cydia Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 99 replies
    • The Wolf: Animal Hunting Game v4.0.2 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: The Wolf: Online RPG Simulator By SWIFT APPS SP Z O O SPOLKA KOMANDYTOWA
      Bundle ID: com.swiftappskom.thewolfrpg
      iTunes Store Link: https://apps.apple.com/us/app/the-wolf-online-rpg-simulator/id1189578604?uo=4


      Hack Features:
      - Unlimited Currencies -> Will increase instead of decrease.


      Non-Jailbroken & No Jailbreak required hack(s): [Non-Jailbroken Hack] [ FREE ] The Wolf: Online RPG Simulator v3.4.0 +1++ Jailed Cheats [ Unlimited Currencies ] - Free Non-Jailbroken IPA Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
      • 68 replies
    • The Wolf: Animal Hunting Game v4.0.2 +1++ Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: The Wolf: Online RPG Simulator By Swift Apps sp. z o.o. sp. kom.
      Bundle ID: com.swiftappskom.thewolfrpg
      iTunes Store Link: https://apps.apple.com/us/app/the-wolf-online-rpg-simulator/id1189578604
       

      Hack Features:
      - Unlimited Currencies -> Spend some.


      Jailbreak required hack(s): [Mod Menu Hack] [ VIP ] The Wolf: Online RPG Simulator v3.4.0 +1++ Cheats [ Unlimited Currencies ] - ViP Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Agree
        • Winner
        • Like
      • 161 replies
    • The Wolf: Animal Hunting Game v4.0.2 +1++ Cheats [ Unlimited Currencies ]
      Modded/Hacked App: The Wolf: Online RPG Simulator By Swift Apps sp. z o.o. sp. kom.
      Bundle ID: com.swiftappskom.thewolfrpg
      iTunes Store Link: https://apps.apple.com/us/app/the-wolf-online-rpg-simulator/id1189578604
       

      Hack Features:
      - Unlimited Currencies -> Spend some.


      Non-Jailbroken & No Jailbreak required hack(s): [No Jailbreak Required] The Wolf: Online RPG Simulator v3.3.1 +1++ Jailed Cheat [ Free Shopping ] - ViP Non-Jailbroken Hacks & Cheats - iOSGods
      Modded Android APK(s): https://iosgods.com/forum/68-android-section/
      For more fun, check out the Club(s): https://iosgods.com/clubs/
        • Informative
        • Agree
        • Like
      • 313 replies
    • Dawn of Ages: Medieval Games v2.0.6 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       

      📌 Mod Requirements

      - Jailbroken iPhone or iPad.
      - iGameGod / Filza / iMazing.
      - Cydia Substrate, ElleKit, Substitute or libhooker depending on your jailbreak (from Sileo, Cydia or Zebra).

       

      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled

       

      ⬇️ iOS Hack Download Link


      Hidden Content

      Download Hack







       

      📖 iOS Installation Instructions

      STEP 1: Download the .deb hack file from the link above. Use Safari, Google Chrome or other iOS browsers to download.
      STEP 2: Once the file has downloaded, tap on it and then you will be prompted on whether you want to open the deb with iGameGod or copy it to Filza.
      STEP 3: If needed, tap on the downloaded file again, then select ‘Normal Install’ from the options on your screen.
      STEP 4: Let iGameGod/Filza finish the cheat installation. If it doesn’t install successfully, see the note below.
      STEP 5: Open the game, log in to your iOSGods account when asked, then toggle on the features you want and enjoy!

       

      NOTE: If you have any questions or problems, read our Jailbreak iOS Hack Troubleshooting & Frequently Asked Questions & Answers topic. If you still haven't found a solution, post your issue below and we'll do our best to help! If the hack does work for you, please post your feedback below and help out other fellow members that are encountering issues.

       

      🙌 Credits

      - @Puddin
      - @Laxus

       

      📷 Cheat Video/Screenshots

      N/A

       

      More iOS App Hacks
      If you’re looking for Non-Jailbroken & No Jailbreak required iOS IPA hacks, visit the iOS Game Cheats & Hacks or the iOSGods App for a variety of modded games and apps for non-jailbroken iOS devices.

      Modded Android APKs
      Need modded apps or games for Android? Check out the latest custom APK mods, cheats & more in our Android Section.
      • 12 replies
    • Dawn of Ages: Medieval Games v2.0.6 +5 Jailed Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 5 replies
    • Dawn of Ages: Medieval Games v2.0.6 +5 Cheats [ Damage & Defence ]
      Modded/Hacked App: Dawn of Ages: total war battle By BoomBit, Inc.
      Bundle ID: com.stratospheregames.dawnofages
      App Store Link: https://apps.apple.com/us/app/dawn-of-ages-total-war-battle/id6477473268?uo=4

       


      🤩 Hack Features

      - Damage Multiplier
      - Defence Multiplier
      - God Mode
      - Dumb Enemy
      - Premium Enabled
      • 12 replies
    • Loot Heroes v1.8.0 +18 Jailed Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes: Fantasy RPG Games By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes-fantasy-rpg-games/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - Nickname Edit Unlocked
      - No Nickname Filter
      - No Dash Cooldown
      - No Ads

      VIP
      - Currency Modifier -> Earn or spend some.
      - Unlimited Hero Skill Points -> Earn some.
      - Unlimited Trophies -> Earn or lose some to stick to the leaderboard.
      - Max Hero Mastery Level
      - Auto Win
      - Battle Pass Unlocked
      - VIP Enabled
      • 120 replies
    • Loot Heroes v1.8.0 +18 Cheats [ Unlimited Currencies ]
      Modded/Hacked App: Loot Heroes By BoomBit, Inc.
      Bundle ID: com.bbp.lootheroes
      iTunes Store Link: https://apps.apple.com/us/app/loot-heroes/id6642699678?uo=4


      Hack Features:
      - Freeze Currencies
      - God Mode -> Traps still cause damage.
      - One-Hit Kill
      - All Heroes Unlocked
      - All Skins Unlocked
      - No Skill Cooldown
      - Nickname Edit Unlocked
      - No Nickname Filter
      - No Dash Cooldown
      - No Ads

      VIP
      - Currency Modifier -> Earn or spend some.
      - Unlimited Hero Skill Points -> Earn some.
      - Unlimited Trophies -> Earn or lose some to stick to the leaderboard.
      - Max Hero Mastery Level
      - Auto Win
      - Battle Pass Unlocked
      - VIP Enabled
      • 274 replies
×
  • 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