[currentValue, targetValue, difference]; について助けが必要です。ライン。初期化要素はコンパイル時の要素ではないと言っています。解決策を投稿してください。
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];