간단한 문자열 기반 키/값 쌍을 사용하여 iPhone에서 이진 plist를 만드는 가장 좋은 방법은 무엇입니까? 나는 요리법과 재료 목록으로 plist를 만들어야합니다. 그때iPhone : 간단한 키/값 문자열을 사용하여 이진 Plist를 만드는 가장 빠른 방법
NSString *ingredients = [recipes objectForKey:@"apple pie"];
내가 HTTP 요청을 통해 XML 데이터 파일에 읽고에 키 값 쌍을 모두 분석 할거야 같은 내가 할 수있는 일있는 NSDictionary에이 글을 읽을 수 있도록하려면 plist. 나는 런타임에 PLIST에이를 작성하고 다음을 읽고뿐만 아니라 런타임에 나중에있는 NSDictionary으로 바꿀 수있을 수 있습니다, 이상적으로
<recipes>
<recipe>
<name>apple pie</name>
<ingredients>apples and pie</ingredients>
</recipe>
<recipe>
<name>cereal</name>
<ingredients>milk and some other ingredients</ingredients>
</recipe>
</recipes>
: XML은 같을 수 있습니다.