0

我试图在警报框中显示多个值,但最后一个到 pars dosnt 似乎显示,这是我已经拥有的代码,

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You Lose" message:[NSString stringWithFormat: @"Unlucky you only made it to       Level : %d" ,fred,@" and scored %i",score ] delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];

任何人都可以建议一种更好的方式来表现这种行为吗?

4

1 回答 1

5

试试这个:

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You Lose" message:[NSString stringWithFormat: @"Unlucky you only made it to Level : %d  and scored %i",fred,score ] delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil]; 
于 2012-06-19T13:56:02.773 回答