0
내 PLIST은 다음과 같다 : 눈 atIndex :배열에서 사전의 항목을 선택 하시겠습니까?
<array>
<dict>
<key>eye</key>
<string>eye_man_blue</string>
<key>lips</key>
<string>lips_blue</string>
</dict>
<dict>
<key>eye</key>
<string>eye_man</string>
<key>lips</key>
<string>lips</string>
</dict>
</array>
은 내가/선택 "eye_man_blue"forkey을 읽을 필요가 0. NSLog (@ "% @. png", eyeDisplay);
이 기록에 가정 :
arrayItems=[NSMutableArray arrayWithContentsOfFile:finalPath];
NSArray *itemArray = [NSArray arrayWithObjects:[arrayItems objectAtIndex:0], nil];
NSDictionary *itemdict = [NSDictionary dictionaryWithObject:itemArray forKey:@"eye"];
NSLog(@"%@",itemdict);
내가 얻을 :
2011-12-21 11:00:30.749 project[358:f803] {
eye = (
);
}
자동 참조 계산 문제 : 선택에 대한 알려진 인스턴스 메소드 'forKey :' – Albert
나는 그것이 내 코드를 업데이트'objectForKey : 매력처럼' – syclonefx
일 – Albert