【发布时间】:2012-07-26 13:00:46
【问题描述】:
当我试图编译我的代码时;这段代码:
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
【问题讨论】:
-
请不要对普通文本和代码使用粗体/斜体。我们有格式标准。另外,请不要还原有效的编辑。
-
@Polynomial:我添加了他的回复并更好地格式化它,因为您的回复删除了包含错误的代码。
标签: xcode4 interface xcode4.2 uialertview