エンティティCustomerのデータモデルがあります。顧客には、名前、住所などの属性があります。これらの属性の1つは、コールバック日です。今日のコールバック日を持つ顧客のみをテーブルにロードしたいと思います。以下は、日付が等しいかどうかを確認してからセルを作成するためにチェックする必要があるコードです。問題は、日付が等しくなく、セルの作成をスキップする場合です。その特定の顧客をスキップして次の顧客に移動するにはどうすればよいですか?
if(date==date2 && month==month2 && year==year2)
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
NSString *string = [NSString stringWithFormat:@"%@ %@", cust.firstName, cust.lastName];
cell.textLabel.text = string;
return cell;
}
return nil;
}