0

UIAlertView が表示するメッセージにインスタンス変数を含めようとしています。

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

ただし、アラートが表示されている場合、メッセージは表示されません。

どんなアイデアや助けもいただければ幸いです:)

サム

4

1 に答える 1

6

あなたはそれを試しましたか:

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

それ以外の

(@"You Were Wrong, the correct structure was %@", structureName)
于 2009-12-16T10:37:13.833 に答える