I have NSMutableArray populated with NSMutableDictionary objects, how can I retrieve let's say second item in NSMutableArray and change that dictionary.
NSMutableArray *tempArr = [[NSMutableArray alloc]init];
NSMutableDictionary *al = [[NSMutableDictionary alloc]init];
for(int i=0; i<[theArray count]; i++) {
id object = [theArray objectAtIndex: i];
id object2 = @"0";
[al setObject:object forKey:@"titles"];
[al setObject:object2 forKey:@"levels"];
[tempArr addObject:al];
}
NSLog(@"fubar %@", [tempArr objectAtIndex:2]);
So i need to access NSDictionary by Key and change Key's value. Thank you