将 NSMutableDictionary 添加到 NSMutableDictionary 是复制还是保留指针。
我希望能够更新第一个 NSMutableDictionary 的内容并在另一个 NSMutableDictionary 中进行跟踪 - 例如......
NSMutableDictionary* dictA = [[NSMutableDictionary alloc] init];
NSMutableDictionary* dictB = [[NSMutableDictionary alloc] init];
[dictA setValue:[NSNumber numberWithInt:1 ] forKey:@"number"];
[dictB setValue:dictA forKey:@"dictA"];
[dictA setValue:[NSNumber numberWithInt:2 ] forKey:@"number"];
现在 dictB.dictA.number = 2 吗?