In my application i have a score and a high score string. I set up a string the UIAlertViewBody NSString set up which sets the text in my UIAlertView message, it tells it to say "Your Score Was (scoreString) Your High Score Is (HighScoreS)". But when i run the application on my phone it just says "Your Score was" when the UIAlertView Pops up.
Here's the rest of the code.
Here's the rest of the code.
Code:
NSString *scoreString = [[NSString alloc] initWithFormat:@"%d", score];
NSString *HighScoreS = [[NSString alloc] initWithFormat:@"%d", Highscoreint];
NSString *UIAlertViewBody = [NSString stringWithFormat:@"Your Score Was", [NSString stringWithFormat:scoreString], [NSString stringWithFormat:@"Your High Score Is"], [NSString stringWithFormat:HighScoreS]];
UIAlertView *YouWinHighScore = [[UIAlertView alloc] initWithTitle:@"Score" message:UIAlertViewBody delegate:self cancelButtonTitle:@"Close" otherButtonTitles:@"Challenge A Friend By Email", @"Challenge A Friend By Text", nil];
[YouWinHighScore show];
[YouWinHighScore release];