Jump to content

5 posts in this topic

Recommended Posts

Posted

%hook something

-(id)someFunction {

NSString* text=%orig;

return %orig

 

}

 

 

-(void)anotherFunction {

UIAlertView *alert = [[uIAlertView alloc] initWithTitle: //putting "text" here doesnt work.
message:
delegate:self  
cancelButtonTitle:@"OK"  
otherButtonTitles:nil];
[alert show];
[alert release];
 
I want the alert title and message to be the text string. how can i do that

 

return %orig;

}

 

%end

Posted (edited)

I want the UIAlert title to be the string variable i got from the first method

idk how but why do you need it anyway?

add the normal UIAlert

Updated by ITz_kser

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