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.
重複の可能性: CocoaでのXMLの解析
iPhone-NSXMLParserを使用して.plist(xml)ファイルを解析できますか?
plistファイルを読み取る簡単な方法があります。NSDictionaryおよびには次の方法を使用できますNSArray。
NSDictionary
NSArray
- (id)initWithContentsOfFile:(NSString *)aPath
NSXMLParserを絶対に使用して、xmlplistファイルを解析できます。ただし、それを行うためにクラスを使用する方muchがはるかに簡単です。NSPropertyListSerialization
much
NSPropertyListSerialization