尝试在UIAlertView显示的消息中包含实例变量。
lostAlert = [[UIAlertView alloc] initWithTitle:@"Sorry" message:(@"You Were Wrong, the correct structure was %@", structureName) delegate:self cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];但是,当显示Alert时,不会显示任何消息。
如有任何想法和帮助,我们将不胜感激:)
相同的
发布于 2009-12-16 18:37:14
你有没有尝试过:
[NSString stringWithFormat:@"You Were Wrong, the correct structure was %@", structureName]而不是
(@"You Were Wrong, the correct structure was %@", structureName)https://stackoverflow.com/questions/1913366
复制相似问题