Skip to content

Instantly share code, notes, and snippets.

@zhongge
Created December 14, 2014 09:11
Show Gist options
  • Save zhongge/2584ee25f8c9c287e776 to your computer and use it in GitHub Desktop.
Save zhongge/2584ee25f8c9c287e776 to your computer and use it in GitHub Desktop.
what is the purpose of the reuse identifier?
The reuse identifier is associated with a UITableViewCell object that the table-view’s delegate creates with the intent to reuse it as the basis (for performance reasons) for multiple rows of a table view. It is assigned to the cell object in initWithFrame:reuseIdentifier: and cannot be changed thereafter. A UITableView object maintains a queue (or list) of the currently reusable cells, each with its own reuse identifier, and makes them available to the delegate in the dequeueReusableCellWithIdentifier: method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment