아래 코드를 사용하여 앱에서 nsdictionary를 만듭니다.사전이 제대로 작성되지 않았습니까?
NSDictionary *allImportDict = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSNumber numberWithInt:containerId], @"containerId",
[NSNumber numberWithInt:docTypeId], @"docTypeId",filextension, @"fileExt",metaDataFiellds, @"metaDataFields",[NSNumber numberWithInt:tmpRepoId], @"repositoryId",[NSNumber numberWithInt:1], @"pagesCount",
tmpSessionID, @"sessionId", fileName, @"title",guid, @"tmpFileName",[NSNumber numberWithInt:tmpUserID], @"userId",
nil];
있지만 allImportDict의
인쇄 설명을 아래와 같이 사전을 만들 :
{
containerId = 2;
docTypeId = 1;
}
이 키의 대부분이 누락 된 모든 키를 포함하지 않는 이유 나를 인도하세요?
'filextension, @ "파일을 확인하십시오 .Ext" –
무엇이 문제입니까? – iOSGuy
'filextension'은'nil' 인 것처럼 보이고 그 다음에 사전 구조를 멈춘다. – Larme