Jump to content

UIAlertView with a link [tweak only]


Go to solution Solved by Cyber X,

30 posts in this topic

Recommended Posts

Posted

So I spiced up my alert and I have 3 buttons one in cancelbutton and two in otherbutton

How can I link the 2 otherbuttons to diffrent links? @"iOSGods" , @"Credits" , nil]

Linking one to the site an the other to a members page

You can't apply links to all the buttons otherwise they can't open the app.

 

Show us your tweak.xm :)

Posted

Sorry for the inconvenience, DiDA is telling crap. Of course you can assign each button to a unique action or link.

Posted

Sorry for the inconvenience, DiDA is telling crap. Of course you can assign each button to a unique action or link.

If all 3 buttons have a link, how will the user close the popup? They won't be able to.

 

Please read my post carefully before rushing to make your post.

Posted

Popup can be closed when a button got clicked -_- I understand when you don't know that because you stuck at the basic templates for an UIAlertview

Posted

Popup can be closed when a button got clicked -_- I understand when you don't know that because you stuck at the basic templates for an UIAlertview

Yeah, button gets clicked -> Opens URL -> Switches back to the app and the popup will appear again if the condition is met.

Posted

You can make the popup appear only once per app launch so you modify the condition or what you say..

Posted

You can make the popup appear only once per app launch so you modify the condition or what you say..

Yes, if you use the other AppDelegate method but I was talking about the current one L33t was using.

Posted

I have a close button

Close buttons is iAgree

The links I want to add to iOSGods and Credits

 

Unless I can make the credit button open a new popup and add the credits there haha

Posted (edited)

x8giFvG.jpg

 

@@castix

 

can you help me add the link for iOSGod button [link to site]

Credits [link to who helped me]?

Updated by L33TPr0xY
Posted

I'm using your Fragger alert to show you

%hook FraggerAppDelegate
-(void)applicationDidBecomeActive:(id)alert { 
UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Fragger Hacked Successfully"
message:@"Hacked by L33TPr0xY from iOSGods.com!!" delegate:selfcancelButtonTitle:@"Close" otherButtonTitles:@"iOSGods", @"Credits", nil]; 
[credits show];
[credits release]; 
%orig;
}


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

NSString *credits = [alertView buttonTitleAtIndex:buttonIndex];

if([credits isEqualToString:@"iOSGods"]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://iOSGods.com"]]; 
  }
}
if([credits isEqualToString:@"Credits"]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"THE OTHER WEBSITE YOU WANT TO REFER"]];
  }
}
%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
×
  • 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