Reloading data to a table view from a database
===

I have a table view and i am trying to reload data into each field using core data. Right now, the data loads when i run the application. I have placed a button in the view controller that will set the new core data values and then reload the table. At the end of this I am trying to reload the table to display the newly updated values. See below:


    - (IBAction)reloadResults:(id)sender {
 
    /* Deletes the previous core data values */
    [self deletePrevious];
     
    NSMutableArray *res = [self getData];
    
    for (NSMutableArray *inner in res) {
         
        DataTbl *tbl = [NSEntityDescription insertNewObjectForEntityForName:@"DataTbl" inManagedObjectContext:self.objContext];
       
        tbl.loc1 = [inner objectAtIndex:0];
        tbl.loc2 = [inner objectAtIndex:1];
        [self.objContext save:nil];
    }
        /*Is this in the right place?*/
        [self.tableViewOutlet reloadData];

    }

However, when the table reloads all of the core data values display as 'null'. Is the reloadData call in the right place, or is there something else I'm doing wrong? Thanks for your help!