changing a key name in NSDictionary
问题 I have a method which returns me a nsdictionary with certain keys and values. i need to change the key names from the dictionary to a new key name but the values need to be same for that key,but i am stuck here.need help 回答1: This method will only work with a mutable dictionary. It doesn't check what should be done if the new key already exists. You can get a mutable dictionary of a immutable by calling mutableCopy on it. - (void)exchangeKey:(NSString *)aKey withKey:(NSString *)aNewKey