JSONKit导入工程后编译报错的解决方法

来源:互联网 发布:游戏无线鼠标推荐 知乎 编辑:程序博客网 时间:2024/06/10 07:45


时间:2014-07-17 17:06来源:www.chengxuyuans.com

JSONKit导入工程后编译报错的解决办法

报错信息:error: assignment to Objective-C's isa is deprecated in favor of object_setClass()

?

解决办法:

(1)修改JSONKit.m文件第680行,修改为object_setClass(array, _JKArrayClass);

?

(2)修改JSONKit.m文件第931行,修改为object_setClass(dictionary, _JKDictionaryClass);

转载注明地址:http://www.chengxuyuans.com/javascript/79726.html

0 0