Realm: Map JSON to Realm-Objects with Alamofire

…衆ロ難τιáo~ 提交于 2020-01-22 21:24:59

问题


I would like to use Realm and Alamofire to map JSON to my database objects. Are there good tutorials out there?


回答1:


Realm offers built-in limited capabilities of mapping arbitrary JSON structures to RLMObjects. But there are some good third-party libraries, which could assist you with your use-case. You might want to checkout these:

  • Realm-JSON (Objective-C), which offers a declarative, Mantle like way of defining your mapping
  • ObjectMapper (Swift), which offers Realm and Alamofire support


来源:https://stackoverflow.com/questions/33479733/realm-map-json-to-realm-objects-with-alamofire

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!