Getting web data into UITableView

Discussion in 'iOS Programming' started by Tander, Jul 29, 2013.

  1. Tander macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #1
    Hey guys,

    Can anyone recommend a good tutorial on getting live web data into UITableViewCells.

    I'm just cementing my understanding of Table Views and just completed my own project with hard coded data in the cells and detailed view.

    Now, I want to look into getting data from the web and storing it in cells.

    So, for a blog - maybe in each cell I can set:

    1. The image
    2. Blog Title
    3. - Author

    Then go from there...

    I know how to set those three items - I just need a nice tutorial on setting those details from a blog or website that has those attributes, etc.

    Thanks guys!
     
  2. waterskier2007 macrumors 68000

    waterskier2007

    Joined:
    Jun 19, 2007
    Location:
    White Lake, MI
    #2
  3. Tander thread starter macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #3
    That's a pretty awesome tutorial.

    Thanks! :cool::D
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    If you can get the info you need from the web in an XML (which RSS feeds are) or JSON format, you'll save yourself some headaches, since they are easier to parse.
     
  5. Tander thread starter macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #5
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    Why not? It might be good to consider some differing approaches.
     
  7. MattInOz macrumors 68030

    MattInOz

    Joined:
    Jan 19, 2006
    Location:
    Sydney
    #7
    Just a friendly reminder Tableview cells are view objects not model objects.
    They display with care but are very fickle with your data. :)

    I'm sure the tutorials will go in to storing your web data vs. displaying it.
     
  8. Tander thread starter macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #8
    Yes, I am aware that the cells need to display and the model needs to store.

    Thanks for the reminder though.
     

Share This Page