-[__NSCFDictionary setObject:forKey:]: mutating method sent to immutable object' 解决方法

-[__NSCFDictionary setObject:forKey:]: mutating method sent to immutable object' 解决方法:
错误:NSMutableDictionaryd =[[[NSUserDefaults standardUserDefaults] objectForKey:@"xxxx"] mutableCopy];
修改:NSMutableDictionary
d =[NSMutableDictionary dictionaryWithDictionary:[[NSUserDefaults standardUserDefaults]ValueForKey:@"xxxx"]];

posted @ 2015-08-14 16:48  WillkYang  阅读(277)  评论(0编辑  收藏  举报