Uitableview iPhone SDK-DidSelectRow错误

Uitableview iPhone SDK-DidSelectRow错误,uitableview,Uitableview,我已尝试查找错误数小时:/ 这是我的代码: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSInteger row = [indexPath row]; if (self.CountryDetailViewController == nil) { CountryDetailViewController *aCountryDetail = [[C

我已尝试查找错误数小时:/

这是我的代码:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

NSInteger row = [indexPath row];
if (self.CountryDetailViewController == nil) {
    CountryDetailViewController *aCountryDetail = [[CountryDetailViewController alloc] initWithNibName:@"CountryDetailView" bundle:nil];
    self.CountryDetailViewController = aCountryDetail;
    [aCountryDetail release];
}

CountryDetailViewController.title = [NSString stringWithFormat:@"%@", [CountryArray objectAtIndex:row]];

MyAppAppDelegate *delegate = [[UIApplication sharedApplication] delegate];
[delegate.CountryNavController pushViewController:CountryDetailViewController animated:YES];                                 
}   
我得到以下错误:

正在访问未知的“setTitle:”类方法 CountryDetailViewController之前需要表达式

我想你可以从帖子上看到我想做什么。
我想这很简单,但我一点线索也没有:(

CountryDetailViewController很可能是您的类名。可能将第一个字符改为小写会起作用。假设定义了ivar