I tableviewcellクラスで.xibとして取得したuitableviewcellを読み込めません。事前に感謝してください。「itemCell」という名前のバンドルでNIBをロードできませんでした。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *cellId = @"itemCell";
NSDictionary *dictDetailList = [_arrItemList objectAtIndex:indexPath.row];
HomeRestuTableViewCell *cell = (HomeRestuTableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellId];
if(!cell) {
[tableView registerNib:[UINib nibWithNibName:@"itemCell" bundle:nil] forCellReuseIdentifier:cellId];
cell = (HomeRestuTableViewCell *)[tableView dequeueReusableCellWithIdentifier:cellId];
}
[cell setupHomeRestuCell:dictDetailList];
return cell;
}
どのようなエラーがありましたか?どうやってtableViewを作ったのですか? –
基本的に 'cellForRow ...'にセルを登録しないでください – vadian