题
试图包括在一个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)
不隶属于 StackOverflow