Creating a unique id for a Core Data program on the iPhone

前端 未结 9 1577
暖寄归人
暖寄归人 2020-12-04 07:28

I am having a bit of trouble figuring out this Core Data stuff. How do I create a new entry with a unique ID? In SQL I would just declare one field as an autoincrement fie

9条回答
  •  余生分开走
    2020-12-04 08:08

    What if we want to sync with a remote database that does need autoincremented id's for unique rows of data? Is there a way to implement autoincremented id's if we need to. I understand it's not required for core data but I need to import data from a remote database and then upload again and make sure the id's are intact.

提交回复
热议问题