UITableView and Cell Reuse
问题 I have a UITableView and I've subclassed UITableViewCell (called it CustomCell ) so it has several labels and a UIImageView . Only certain cells will actually display an image. Here's my code for tableView:cellForRowAtIndexPath: : - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { Match *aMatch = [[appDelegate.matchByDate objectAtIndex:indexPath.section] objectAtIndex:indexPath.row]; static NSString *CellIdentifier = @"Cell"; CustomCell