- (void)viewDidLoad
{
CGRect frame = CGRectMake(20, 45, 140, 21);
UILabel *label = [[UILabel alloc] initWithFrame:frame];
[window addSubview:label];
[label setText:@"Hello world"];
[label release];
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
错误是:使用下划线标识符“窗口”