我到处寻找无济于事.我正在线程中进行一些图像加载,因为UIKit不是线程安全的,我将不得不将图像存储为CGImageRefs,但我无法弄清楚如何做到这一点.我之前没有使用任何Quartz的东西,所以这让我很困惑.基本上我只需要将磁盘中的JPG加载到CGImageRef中.同样对于奖励积分,无论如何将GIF加载到CGImageRef中?
所以我已经在我的项目上运行了json-framework,但需要帮助搞清楚如何使用它来解析这个json字符串:
[
{
"id":"0",
"name":"name",
"info":"This is info",
"tags":
[
{
"id":"36",
"tag":"test tag"
},
{
"id":"37",
"tag":" tag 2"
}
],
"other":"nil"
},
{
"id":"1",
"name":"name",
"info":"This is info",
"tags":
[
{
"id":"36",
"tag":"test tag"
},
{
"id":"37",
"tag":" tag 2"
}
],
"other":"nil"
}
Run Code Online (Sandbox Code Playgroud)
]
关于如何使用这种特定类型的json的任何帮助和示例代码都会很棒.不知怎的,我无法把它写进一本我能读出来的字典里.非常感谢.