开发者

CoreData Server Sort order on the client(iOS)

I am developing an iOS app with Core Data. The app grabs data from the server and updates CoreData. The records in the database are updated/sort order on the server. What is the best solution to preserve the sort order on the client?

Is storing the sort order in another column the best solution? This data is go开发者_高级运维ing to be changing on the server.


CoreData (currently) does not preserve sort order. If there's a natural sort ordering (i.e. by name, date, etc.) you do it on fetch, otherwise you'll need to add the ordering ("index") to your object model.

Note: this may not be the case in near the future. hint, hint

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜