Я хочу скопировать значения NSMUtableDictionary в другой NSMutableDictioary.Как я могу это сделать?
Вот мой код:
PersonClass.h file:
NSMutableDictionary *tempDictionary;
@property (nonatomic, retain) NSMutableDictionary *tempDictionary;
PersonClass.m
@synthesize tempDictionary;
tempDictionary = [[NSMutableDictionary alloc] init];
-(PersonClass *) initWithPerson:(NSMutableDictionary *) feedDictionary
{
// get all the values in feedDictionary.
//Now i want copy of the details from feedDictionary into the tempDictionary
tempDictionary = feedDictionary; // Doesn't copy.
}
Я хочу получить доступ к значениям tempDictionary класса person.Так как я могу скопировать из feedDictionary в tempDictionary.Пожалуйста, помогите мне.
Спасибо.