我有以下法典:
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
NSMutableDictionary *golferIconsu = [userDefaults objectForKey:@"golferIconsFirstScene"];
NSMutableDictionary *golferIconsSceneOne = [[NSMutableDictionary alloc]initWithDictionary:golferIconsu];
NSMutableDictionary *savedScoreCards;
NSMutableDictionary *currentScoreCard;
[currentScoreCard setObject:golferIconsSceneOne forKey:@"golferIconsFirstScene"];
NSMutableDictionary *GI = [currentScoreCard objectForKey:@"golferIconsFirstScene"];
[savedScoreCards setObject:currentScoreCard forKey:@"1"];
NSLog([golferIconsSceneOne objectForKey:@"30101"]);
NSLog([GI objectForKey:@"30101"]);
归根结底,在我的记录中印发的都是第1条<编码>NS Carlo电话,而不是第2条。 例如:
NSLog([golferIconsSceneOne objectForKey:@"30101"]);
这部印刷了我存放在该字典上的插图。
This one:
NSLog([GI objectForKey:@"30101"]);
根本没有印刷任何东西。
如何获得<代码>NSDictionary GI拥有与golferIconsScene One
完全相同的特性,但我需要利用的目前核心标准<<0>代码>,其中载有
golferIconsScene One/code>?