質問

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