Having done some thing very similar, I would have a "populate" method that gets loaded from the new view controller. So in your viewDidLoad method, you would (in this order)
1-Add the activity indicator, start animating.
2-Start your XML parsing methods.
When your XML is done parsing, then you setup the view, populate your tables, etc.
There are probably 75 billion ways to do this, but that's how I have done this in the past.
|