Skip to content

Instantly share code, notes, and snippets.

@dehengxu
Created June 26, 2013 10:26
Show Gist options
  • Save dehengxu/5866417 to your computer and use it in GitHub Desktop.
Save dehengxu/5866417 to your computer and use it in GitHub Desktop.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *identifier = @"_table_view_cell_identifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
}
if (cell) {
//Todo:Config cell object.
}
return cell;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment