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