试图包括在一个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