简体   繁体   中英

When I convert NSData to NSDictionary,there showed something different on iOS9 and iOS8

在ios9上

在ios8上

On iOS 9 the result is what I want,however,on iOS 8,the dictionary is not a real dictionary.The two pictures is on iOS 9 and iOS 8.What's more,on iOS 10,it's fine.

I wonder how can I convert NSData to NSDictionary correctly on iOS 8.

I use AFHTTPClient to get data.

The response object is already a dictionary! AFNetworking did handle that for you .

print the log of responseObject which you getting from response :

https://stackoverflow.com/a/19086685/3901620

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM