JSON Parsing method not working for ios4 in iphone?

前端 未结 3 1373
面向向阳花
面向向阳花 2020-12-22 10:18

I used following code to get response from JSON response. It working very nicely in ios5 but for ios4 it is not working. So what will be solution in ios4.

N         


        
相关标签:
3条回答
  • 2020-12-22 10:39

    @python: Regarding your comment about ARC. You can actually turn off ARC for specific files created with MRC. Go to Project settings --> navigate to "Build Phases" tab --> under "Compile Sources" tab --> write as "-fno-objc-arc" in the Complier Flags" section for the specific file for which you don't want to use ARC.

    0 讨论(0)
  • 2020-12-22 10:42

    NSJSONSerialization is only support ios 5 , if you want json for both ios 4 and ios 5 , use jsonKit

    0 讨论(0)
  • 2020-12-22 10:55

    NSJSONSerialization since it is only supported on iOS 5.0+ and Mac OS X 10.7+. I think you can also have a try with third-party JSON Library

    >>>Edited

    Jsonkit for both iOS4 and iOS5

    Hope, this will help you..

    0 讨论(0)
提交回复
热议问题