0
我使用下面的代碼在應用程序中創建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,@ 「fileExt」' –
什麼是這個問題? – iOSGuy
'filextension'似乎是'nil',然後停止字典的構建。 – Larme