Skip to content

Instantly share code, notes, and snippets.

@augustjoki
Created May 13, 2011 00:50
Show Gist options
  • Save augustjoki/969755 to your computer and use it in GitHub Desktop.
Save augustjoki/969755 to your computer and use it in GitHub Desktop.
UITableViewCell reuse identifier
+ (NSString *)reuseIdentifier {
static NSString *reuseIdentifier;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
reuseIdentifier = [NSStringFromClass(self) retain];
});
return reuseIdentifier;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment