Skip to content

Instantly share code, notes, and snippets.

@mike3k
Created January 19, 2011 03:54
Show Gist options
  • Save mike3k/785663 to your computer and use it in GitHub Desktop.
Save mike3k/785663 to your computer and use it in GitHub Desktop.
NSString *CellIdentifier;
if (indexPath.row == X) && (indexPath.section == Y) {
CellIdentifier = @"CellWithSubview";
} else {
CellIdentifier = @"Cell";
}
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment