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


http://qqy620.diandian.com/post/2012-10-15/40039809949 

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

错误:NSMutableDictionary*d =[[[NSUserDefaults standardUserDefaults] objectForKey:@"xxxx"] mutableCopy];
修改:NSMutableDictionary*d =[NSMutableDictionary dictionaryWithDictionary:[[NSUserDefaults standardUserDefaults] ForKey:@"xxxx"]];

你可能感兴趣的:(-[__NSCFDictionary setObject:forKey:]: mutating method sent to immutable object' 解决方法:)