Trying to include a instance variable in a message that a UIAlertView Shows.
lostAle开发者_如何转开发rt = [[UIAlertView alloc] initWithTitle:@"Sorry" message:(@"You Were Wrong, the correct structure was %@", structureName) delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
however, when the Alert is shown, no message is shown.
Any ideas and help would be appreciated :)
Sam
did you try it with:
[NSString stringWithFormat:@"You Were Wrong, the correct structure was %@", structureName]
instead of
(@"You Were Wrong, the correct structure was %@", structureName)
精彩评论