以下のコードでは、各セルに個別のセル識別子を使用していますが、どれがうまくいきます。UITableView-iPhoneの各セルに個別のセル識別子を使用すると問題が発生する
-(UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString *identifier =[NSString stringWithFormat:@"ID_%d",indexPath.row];
UITableViewCell *cell = [self.tv dequeueReusableCellWithIdentifier:identifier];
if(cell==nil)
{
UITableViewCell *cell = [self.tv dequeueReusableCellWithIdentifier:identifier];
[email protected]"data";
}
return cell;
}
以下のコードでは、パフォーマンス、メモリまたはその他の問題はありますか?