How to represent app objects such as cloths?

Discussion in 'iOS Programming' started by guydor, Dec 17, 2012.

  1. guydor macrumors member

    Mar 10, 2009

    I would like to know what is the best way to represent objects such as cloths.
    Let's say in the app you can create your own character, assign mouth, eyes, nose, cloths etc.

    How can I represent this objects in storage?
    XML file with the required properties and when need, parse the XML file?

  2. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    In storage, within your app? If so, an XML file is probably a bit too cumbersome. You might want to look into using property-lists (which are, in essence, XML files too, but with a helpful API) or CoreData instead, and then probably backing that up with some model classes. I recommend you read the "Core App Objects" section of the iOS App Programming Guide as a start.
  3. guydor thread starter macrumors member

    Mar 10, 2009
    Great Thanks!


Share This Page