Here is my reboot function
- (void) reloadTable:(id)sender
{
NSLog(@"Reload Table");
NSLog(@"%@",[appDelegate queryList]);
[self.driverTable reloadData];
[self.driverTable setNeedsLayout];
[self.driverTable setNeedsDisplay];
}
Here I call it after getting data from webservice
if( [elementName isEqualToString:@"Response"]) {
Response = NO;
LookupView *lookupView = [[LookupView alloc] initWithNibName:@"LookupView" bundle:nil];
[lookupView reloadTable:self];
}
The problem that I have now is after I performed the search by clicking the search button and receiving the data. The table is not updated with new data. If I call the same function again by pressing the search button again, the table will reload. Now I know that there is data, because I print the array before I invoke a table reload.
Any ideas why?
source
share