当我试图编译我的代码,这段代码:@interface为“UIAlertView中”
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You Lost!"
message:[NSString stringWithFormat:@"You were hit! Try again!"]
delegate:nil
cancelButttonTitle:@"Dismiss" otherButtonTitles:nil];
[alert show];
是有这个错误:
No Visible @interface for 'UIAlertView' declares the sector
请不要对正常的文本和代码使用粗体/斜体我们已经格式化了sta ndards。另外,请不要恢复有效的修改。 – Polynomial 2012-07-26 13:36:30
@Polynomial:我加回了他的回复并格式化得更好,因为你的回复删除了包含错误的代码。 – Liron 2012-11-21 11:34:02