Loading local/remote XML Xcode 4.2

Discussion in 'iOS Programming' started by MDiddy, Dec 1, 2011.

  1. MDiddy macrumors regular


    Jul 24, 2002
    Hello everyone,

    I'm new to iOS development and I've been running into all sorts of problems searching for a tutorial that I can follow in Xcode 4.2. Its almost certainly my newness but its a bit discouraging. I want to learn and as a personal challenge I decided that I'd build a Bus Tracker app using data provided by my town's service, the CTA (transitchicago.com). I have my API key and I have a decent understanding of OOP but I can't wrap my head around the code I need for setting up, retrieving, and displaying this data.

    From what I've gathered, I will embed an XML with the base call results for bus routes in the app since that doesn't change much. Then, when you choose a route, I'll make external calls to the web API, which returns xml. I need to send parameters with each call and store the results but I've been unsuccessful to date. The tutorials I've seen don't use iOS 5's new resource counting and some of the projects I've loaded are broken and I have no clue how to fix them.

    Can anyone suggest a clean, easy to follow tutorial that will help me figure out how I can load xml remotely and locally, store it in a meaningful way, and apply its values to a TableView?

    Any help is appreciated.

  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    What do you mean by "embed an XML"?

    ARC is not a feature of iOS 5 but of Xcode 4.2. It's quite possible to create a project that runs under iOS 4 and still uses ARC.

    Perhaps if you provided the details of how they are "broken", others can provide suggestions for how to fix them.

    What tutorials have you been looking at thus far? Perhaps you might consider installing Xcode 3 alongside 4 just so that you can follow along. Or perhaps you might consider creating your project without ARC turned on.

Share This Page