는 같이중첩 NSDictionaries 사전 구현 PLIST를 저장 구현
Name abc
Address def
ID 123
위는 쉽게 달성하지만 지금은 추가하고 두 번째 계정 항목을 구현하려는 :
First
Name abc
Address def
ID 123
Second
Name abc
Address def
ID 123
아무도
는 같이중첩 NSDictionaries 사전 구현 PLIST를 저장 구현
Name abc
Address def
ID 123
위는 쉽게 달성하지만 지금은 추가하고 두 번째 계정 항목을 구현하려는 :
First
Name abc
Address def
ID 123
Second
Name abc
Address def
ID 123
아무도
방금 사전 배열을 만드는 방법을 찾고 계십니까?
NSMutableArray *array = [NSMutableArray array];
NSDictionary *first = [NSDictionary dictionaryWithObjectsAndKeys:@"abc",@"Name",@"def",@"Address",[NSNumber numberWithInt:123],@"ID", nil];
NSDictionary *second = [NSDictionary dictionaryWithObjectsAndKeys:@"abc",@"Name",@"def",@"Address",[NSNumber numberWithInt:123],@"ID", nil];
[array addObject:first];
[array addObject:second];
// [array addObject:another] and so on.
이로 확인 친절하게 도와 드릴
... NSMutableArray
여기에 NSDictionary
이 포함되어 있습니다.
나는 해결책을 친절하게 다시보고 나에게 제안했다. –
NSDictionary에는 NSDictionary를 비롯한 다른 Objective-C 개체를 포함 할 수 있습니다. –