<分区>
我是编程新手,一直在研究 Apple 的“立即开始开发 IOS 应用程序”指南。当我遇到标题中的错误时,我进入了第 3 部分教程:添加数据,它影响了代码的一部分。错误出现在以 UITableViewCell *cell
开头的行上- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"ListPrototypeCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexpath:indexPath];
StuffItem *toDoItem = [self.toDoItems objectAtIndex:indexPath.row];
cell.textLabel.text = toDoItem.itemName;
return cell;
}
到目前为止,我已尽最大努力遵循指南中的所有说明,我对问题的唯一猜测可能是我命名文件的方式与建议的不同。