Jump to content

UIAlertView not showing in-app


Go to solution Solved by Rook,

35 posts in this topic

Recommended Posts

Posted

ofc u can.... Use Flex 2 to find the AppDelegate and use iOS 7.1 SDKs :)

This is how I find the AppDelagate under the Executible right? DS4U7Ol.jpg
  • Solution
Posted (edited)

I just realized from the super-sized screenshot that he misspelled "AppDelegate".

 

Remove your current UIAlertView code and add this:

%hook AutoRapAppDelegate

-(void)applicationDidBecomeActive:(id)arg { 

UIAlertView *credits = [[UIAlertView alloc] initWithTitle:@"Smule AutoRap Cheats" 
					          message:@"Hacked by Chrizk0 for iOSGods.com!" 
                                                 delegate:self 
  					cancelButtonTitle:@"Close" 
  					otherButtonTitles:@"Visit Us", nil]; 
[credits show];
[credits release]; 
%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
Updated by DiDA
Edited because of the post below
Posted

-_-

 

u can't return to a void :facepalm:

 

listen to the programmer

That is true but no compile-time errors though :mellow:

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