Вопрос

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

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

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

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

Сэм

Это было полезно?

Решение

вы пробовали это с:

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

вместо

(@"You Were Wrong, the correct structure was %@", structureName)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top