Нужна помощь с [currentValue, targetValue, difference]; линия. В нем говорится, что элемент инициализации не является элементом времени компиляции. Пожалуйста, отправьте решение.Ошибка компилятора Objective-C
NSString *message = [NSString stringWithFormat:
@"The value of the slider is: %d\nThe target value is: %d\nThe difference is: %d",
[currentValue, targetValue, difference];
UIAlertView *alertView = [[UIAlertView alloc]]
initWithTitle:@"Hello, World!"
message:message
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
отформатируйте сообщение, чтобы формат кода выглядел лучше ... – ltebean