ラベル付きのプロトタイプセルがあります
@property (nonatomic, strong) IBOutlet UILabel *itemName;
クラス ECOMAdmPanelViewCell で宣言され、そのクラスは Identity インスペクターのセルに設定されます。アウトレット itemName - ラベルが作成されます。
この機能では
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"admPanelCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
if (cell == nil)
cell = [[ECOMAdmPanelViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
cell.itemName.text = [items objectAtIndex:indexPath.row];
// Configure the cell...
return cell;
}
タイプ「UITableViewCell」のオブジェクトに「プロパティ「itemName」が見つかりません」というエラー メッセージが表示されます。誰が何が悪いのか教えてもらえますか?