Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 哪个 JSON 库用于 iPhone 上的数据
我有一个 JSON 文件。我想读取每个元素值并将这些值存储到一个数组中。
我该如何进行?
使用NSJSONSerialization. 它是内置的。
NSJSONSerialization
http://developer.apple.com/library/ios/documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html