- (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;
}
なぜこのエラーが発生するのかわかりません。エラーは、私のカーソルがある行から来ているようです。私はこのエラーをどのように修正することができます。"呼び出されたオブジェクト型NSStringは関数または関数ポインタではありません"というエラー?
Semantic issue
Called object type 'NSString *' is not a function or function pointer
質問の本文にテキストを入力してください。スクリーンショットの唯一のことは、読みにくいことです。 –
なぜあなたは 'self.cellIdentifier'というプロパティを持っていますか?それはローカル変数である可能性があります。 –
あなたはそれが正しい行だと確信していますか?ここでの意味は 'foo(bar)'のようなコードがあり、 'foo'は関数/関数ポインタであると予想されますが、実際は' NSString * 'です。 –