2009-12-16 3 views
0

Попытка включить переменную экземпляра в сообщение, которое показывает UIAlertView.UIAlertView

lostAlert = [[UIAlertView alloc] initWithTitle:@"Sorry" message:(@"You Were Wrong, the correct structure was %@", structureName) delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil]; 

Однако, когда отображается предупреждение, сообщение не отображается.

Любые идеи и помощь была бы оценена :)

Сэм

ответ

6

вы пытались его:

[NSString stringWithFormat:@"You Were Wrong, the correct structure was %@", structureName] 

вместо

(@"You Were Wrong, the correct structure was %@", structureName) 
+0

работал лакомство .. спасибо! :) –