NSMutableDictionary *newDict = [[NSMutableDictionary alloc]init];
NSDictionary *oldDict = (NSDictionary *)[groupsArr objectAtIndex:selectrow];
[newDict addEntriesFromDictionary:oldDict];
[newDict setObject:note.object forKey:groupName];
[groupsArr replaceObjectAtIndex:selectrow withObject:newDict];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:selectrow inSection:0];
NSArray *indexPaths = [[NSArray alloc] initWithObjects:indexPath, nil];
[self.GroupsTable reloadRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationNone];
No comments:
Post a Comment