Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/objective-c/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Objective c 大整数上的SBJSONParser_Objective C_Nsdecimalnumber_Sbjson - Fatal编程技术网

Objective c 大整数上的SBJSONParser

Objective c 大整数上的SBJSONParser,objective-c,nsdecimalnumber,sbjson,Objective C,Nsdecimalnumber,Sbjson,我正在使用json框架解析iPhone项目中的json数据。但是json数据中有大量的数据,比如10432159274,这会使NSNumber溢出。在SBJsonParser.h中,文档表示JSON中的数字将转换为NSNumber或NSDecimalNumber。如何使用它,以便将大整数解析为NSDecimalNumber?谢谢。我找到了解决方案,更新到最新版本的SBJSON将解决这个问题。新版本使用NumberWithLong来表示最多有19位的整数

我正在使用json框架解析iPhone项目中的json数据。但是json数据中有大量的数据,比如10432159274,这会使NSNumber溢出。在SBJsonParser.h中,文档表示JSON中的数字将转换为NSNumber或NSDecimalNumber。如何使用它,以便将大整数解析为NSDecimalNumber?谢谢。

我找到了解决方案,更新到最新版本的SBJSON将解决这个问题。新版本使用NumberWithLong来表示最多有19位的整数