rdelfin rdelfin - 1 year ago 105
iOS Question

Table Storage in Objective-C with cocoa touch

I am making a game that has a table (attack bonuses). What is the most efficient way of creating this table and be able to access it easily from the device (besides putting this info directly into the class)

Answer Source

XML is usually my weapon of choice for storing this kind of information:

    <bonus name="nameOfBonus1" value="30"/>
    <bonus name="nameOfBonus2" value="12"/>

You can then use NSXMLParser to parse the information from the XML file.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download