2
코어 데이터 엔티티와 1 : m 하위의 NSJSONSerialization
으로 JSON
객체를 어떻게 만들 수 있습니까? 코어 데이터에서 JSON 만들기
JSON
로 변환하기 전에 NSDictionary
에 요청을 가져 출력하려고
propertiesToFetch
를 설정할 때없이
NSDictionary
평판을 얻을.
이 내 코드입니다 :
NSFetchRequest *request = [NSFetchRequest
fetchRequestWithEntityName:@"ContrSector"];
request.resultType = NSDictionaryResultType;
request.propertiesToFetch = @[@"industries"];
NSError *error;
NSArray *result = [self.managedObjectContext
executeFetchRequest:request error:&error];
어떻게이 작업을 수행하는 올바른 방법이 될 것입니다?
은 ((많은 관계로 잘못된'와 충돌), 이름 산업, isOptional 1, isTransient 0, 개체 ContrSector, renamingIdentifier 산업 ...' –
AlexR
그냥 "산업을 사용할 때 충돌이 무엇인지 "? – wattson12
'- [NSSQLToMany foreignEntityKey] : 인식 할 수없는 셀렉터가 인스턴스로 전송 됨 0x100185460' – AlexR