首页 > Web开发 > 详细

jsonkit 分解nsarray 时刻 一个错误

时间:2015-10-01 21:40:47      阅读:168      评论:0      收藏:0      [点我收藏+]

jsonkit 分解nsarray 时刻 一个错误

Assertion failure in -[TXJKArray count], /Users/mqq/hudson/1740/src/TencentOpenApi_IOS/Common/Util/JSONKit.m:738



解决的方法:

Had the same issue, I was trying to set the output straight to a dictionary I had created.
myDictionary = [string objectFromJSONString];

solved it by setting the output to a temporary dictionary and making a copy
NSDictionary *tempDictionary =[string objectFromJSONString];
myDictionary = [tempDictionary copy];

JSONKit is a very nice tool I will continue to use it!

版权声明:本文博主原创文章,博客,未经同意不得转载。

jsonkit 分解nsarray 时刻 一个错误

原文:http://www.cnblogs.com/gcczhongduan/p/4851549.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!