Skip to content

Instantly share code, notes, and snippets.

@shuizhongyueming
Created April 23, 2014 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuizhongyueming/11208201 to your computer and use it in GitHub Desktop.
Save shuizhongyueming/11208201 to your computer and use it in GitHub Desktop.
cellForRowAtIndex时,使用到的可重用的cell
SomeCell * cell = [tableView dequeueReusableCellWithIdentifier:@"someIdentifier"];
if(cell == nil){
cell = [[SomeCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"someIdentifier"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment