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);

你可能感兴趣的:(ios,JSONKit)