What are the differences between Restoration ID and identifier to a UITableViewCell that set in storyboard

后端 未结 2 724
广开言路
广开言路 2021-02-11 14:46

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(

2条回答
  •  日久生厌
    2021-02-11 15:23

    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.

提交回复
热议问题