if ([elementName isEqualToString:@"record"]) {
[records addObject:[currentDictionary mutableCopy]];
NSInteger size = [records count];
NSLog(@"Current array size %d",size);
[currentDictionary release];
}
上面的代碼不會將NSMutableDictionary對象添加到NSMutableArray。日誌顯示爲'0'作爲數組的大小。NSMutableDictionary將不會添加到NSMutableArray
你需要把更多的代碼 – Ishu 2011-03-07 09:43:56