I have a sting that is equal to a text field that i want to insert inside of a UIAlertView.
NSString *finalScore = [[NSString alloc] initWithFormat:[counter2 text]];
UIAlertView *myAlertView = [[UIAlertView alloc]
initWithTitle:finalScore
message:@"You scored X points"
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"OK", nil];
[myAlertView show];
[myAlertView release];
I want to replace"X" with the score from the string "finalScore"
I know how to have it just with the score, you would simple just enter the strings name without quotes under the message section, but i want the the text there too along with the string.
Thanks a bunch, Chase