【问题标题】:Restkit mapping 0.2Restkit 映射 0.2
【发布时间】:2012-12-10 08:53:07
【问题描述】:

如何在 Restkit 2.0 中像这样映射json。我找不到教程,所有教程都适用于以前的版本。我知道它是如何在 0.10.0 中完成的,但不知道该怎么做这个数组和嵌套数组在 0.20.0

 {
      "days" : [
        {
          "day" : 1,
          "id" : 1,
          "set1" : [
            {
              "exercise_id" : 1,
              "exerciseunits" : [
                {
                  "count" : 3,
                  "id" : 1,
                  "weight" : 60
                }
              ],
              "id" : 1,
              "name" : null,
              "subbodypart_id" : 1,
              "subbodypartname" : "Chest"
            }
          ]
        }
      ],
      "description" : "desc",
      "id" : 1,
      "name" : "asdfg"
    }

【问题讨论】:

    标签: ios ipad restkit


    【解决方案1】:

    使用更新后的documentation in the wiki 关于对象映射。不仅如此,您还可以下载当前的 RestKit master 以及使用嵌套对象的示例(例如 Twitter Core Data)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-03-05
      • 2013-08-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多