- (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;
}
I have no idea why I am getting this error. The error seems to come from the line that my cursor is on. How can I fix this error:
Semantic issue
Called object type 'NSString *' is not a function or function pointer
I had this exact same error and discovered it was caused because I had created an array manually by typing out all of it’s elements, and had forgotten a comma in between two of them.