I'm trying to implement an activity indicator when I parse my XML data.
I found this Activity indicator (spinner) with UIActivityIndicatorView and have it working. However, because I'm using performSelectorInBackground
when it finishes parsing none of the data shows up in my tableview.
I have tried [self.tableview reloadData] and I've tried [self.view setNeedsDisplay] however, nothing seems to work.
If I leave the view and come back to it, all the data appears in the tableview cells.
Any ideas?
You should call
in the main thread (you can check in wich thread you'r in with [NSThread isMainThread])
you can do