- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
self.cellIdentifier = [self.brain returnCellIdentifier:indexPath];
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:self.cellIdentifier];
if (!cell) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:self.cellIdentifier];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
}
cell.textLabel.text = [self.brain enchantmentCellText:indexPath];
return cell;
}
Run Code Online (Sandbox Code Playgroud)
我不知道为什么我会收到这个错误.错误似乎来自我的光标所在的行.我该如何解决这个错误:
Semantic issue
Called object type 'NSString *' is not a function or function pointer
Run Code Online (Sandbox Code Playgroud)
Jos*_*ick 19
我有这个确切的同样的错误,发现是因为我已经通过打字一切的元素手动创建一个数组它引起的,而忘记了一个逗号在他们两人之间.
| 归档时间: |
|
| 查看次数: |
8129 次 |
| 最近记录: |