turning seismicXML into tabbar app
Hopefully an easy one:
1. I took seismicXML and changed bits and bobs until it was working nicely for my needs
2. Then I changed the applicationDidFinishLaunching from adding a navigationController and initiating the XML download and changed it to initiate a tabBarController with four associated navigationControllers, each of which push the view when initialised.
3. So far, so good - tabBarController working fine
4. Had to think what to do with the NSURLConnection, so I put it in viewDidLoad of the rootControllers. But the parser methods were in the appDelegate, so I had to tell the viewController to initiate the main appDelegate again.
5. So far, so good - the XML is being parsed, as I can see from some NSlogs
6. But, the table doesn't reload.
I can't get it to load the data it has.
I think the problem is that by initialising the appDelegate in my viewController viewDidLoad method, I am creating another instance of appDelegate, which therefore has lost its reference to the current viewController.
Am I even close with this diagnosis, doctor?
If so, what can I do about it?
Has anyone managed to use the seismicXML to do something similar?
|