PDA

View Full Version : Drill-down using XML




jpmcgrath
Aug 8, 2011, 10:18 AM
I'm new to iOS dev, but I'd like to solve this problem:

I have an XML feed - http://www.navigant.com/services/professionals.ashx - that I would like to parse and put into a tableView in my application. The table view is housed within a tab bar application, which is the rootViewController. I'd like to have the information drill-down, as in this line of logic...

Industry -> Location -> Professionals List -> Professionals Details

All of the samples that I have found feature a navigation controller as the rootViewController, which is throwing me off. I've tried to get the XML feed functioning on its own, but I can't quite get the logic right.

Any help would be greatly appreciated :) Thanks!



ethical
Aug 8, 2011, 05:42 PM
Take a look at this tutorial. http://www.devx.com/wireless/Article/45161/1954

You need to create a TabBar Application then set the view controllers as navigation controllers. The guide uses Xcode 3.x, which is what I used when doing a similar thing because I couldn't figure out how to follow the instructions in Xcode 4, but if you persist I'm sure you'll work it out.

Edit: Here's Apple's documentation on doing this: http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/CombiningViewControllers/CombiningViewControllers.html#//apple_ref/doc/uid/TP40007457-CH104-SW1