从FB中检索了" total_count":514,只想发布" 514"解析

时间:2015-07-11 23:41:58

标签: ios swift facebook-graph-api parse-platform xcode6

Result Dict: { data = ( ); summary = { "total_count" = 514; }; } 做了一点研究和我的问题都错了,但下面的那个人把我带到了正确的地方。试图从NSDictionary获得514,我得到了答案Getting information from a NSDictionary

var totalCount:AnyObject? = yourDict.objectForKey("摘要")!. objectForKey(" total_count")!

这就是解决方案!

1 个答案:

答案 0 :(得分:2)

保存:

resultdict[0].summary.total_count