I have written following code to reload a UITableView from a NSInvocationOperation. However the interface does not update for a long time after calling [tableview reloadData]
.
Apple documentation says that delegate method won't be called within NSOperation.
NSOperationQueue *queue = [NSOperationQueue new];
NSInvocationOperation *operation = [[NSInvocationOperation alloc]
initWithTarget:self
selector:@selector(connectToServer)
object:nil];
[queue addOperation:operation];
[operation release];
[queue autorelease];
- (void) connectToServer
{
...
...
[tableview reloadData];
}