我正在尝试使用以下代码向tableView添加一行。我正尝试下载RSS源,并在下载源时,将它们逐行地动态添加到tableView中。在类型的对象上找不到属性'tableView' -
- (void)requestFinished:(ASIHTTPRequest *)request {
RSSEntry *entry = [[[RSSEntry alloc] initWithBlogTitle:request.url.absoluteString
articleTitle:request.url.absoluteString
articleUrl:request.url.absoluteString
articleDate:[NSDate date]] autorelease];
int insertIdx = 0;
[_allEntries insertObject:entry atIndex:insertIdx];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:insertIdx inSection:0]] withRowAnimation:UITableViewRowAnimationRight];
}
它给我的错误 - 属性“的tableView”不是类型的对象“ChecklistsViewController *”实测值[3]
我有一个单一视图的应用和根视图控制器被称为ChecklistsViewController 。