UIAlertView сообщения
-
19-09-2019 - |
Вопрос
Попытка включить переменную экземпляра в сообщение, отображаемое 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)
Не связан с StackOverflow