阅读背景:

如何在CoreData中使用单个实体时坚持重新排序项目?

来源:互联网 

The user can reorder items in a UITableView, the data is from a single entity. I want to persist the order of which the user has defined (by moving the items) back into CoreData so that when I fetch the records back the order will be what the user defined. I know you could simply do this by having an integer attribute in the model, but that would be inefficient if I had a lot of records as I would have to update every other record. Is there an elegant way I could achieve this, without having to use the approach I mentioned? ThanksThe user can reorder items in a UITableView, th




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: