Skip to content

Instantly share code, notes, and snippets.

@joshavant
Created October 7, 2015 20:16
Show Gist options
  • Select an option

  • Save joshavant/5286eea1f2d80ef7c2df to your computer and use it in GitHub Desktop.

Select an option

Save joshavant/5286eea1f2d80ef7c2df to your computer and use it in GitHub Desktop.

The recommended way to keep a long-term reference to a particular record is to store the first and last name, or a hash of the first and last name, in addition to the identifier. When you look up a record by ID, compare the record’s name to your stored name. If they don’t match, use the stored name to find the record, and store the new ID for the record.

-from Address Book Programming Guide for iOS, Using Record Identifiers, 2nd paragraph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment