简体   繁体   English

具有API使用量的核心数据

[英]Core-Data with API consumption

I have an application which calls webservice in background thread and at the same time it displays data by fetching data from core-data in main-thread. 我有一个在后台线程中调用webservice的应用程序,同时它通过从主线程中的核心数据中获取数据来显示数据。

I am sure this approach has lots of loop-holes 我相信这种方法有很多漏洞

I am looking for best approach to handle this scenario. 我正在寻找处理这种情况的最佳方法。

Use RestKit framework. 使用RestKit框架。 It do all you needed. 它可以满足您的所有需求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM