When I drag a UITableViewCell
to a tableView in storyboard
, I find there are two ID to be set in the inspector. One is in the Identity Inspector(
A restoration identifier is a string that you need to assign to any view controller or view that you want preserved and restored. During state preservation any view controllers or views in the view hierarchy that have a restoration identifier will be saved to disk.
The Identity in the Identity Inspector, are used to instantiate objects from Storyboard
Restoration IDs are used for state restoration, i.e. making your view look like it did when you quit the app-often used for re-creating objects. Storyboard IDs, on the other hand, simply identify objects on the storyboard-these are often used for creating objects.