Sunday, 15 January 2012

iphone - Store and Manage Data for Simple App -



iphone - Store and Manage Data for Simple App -

i create simple game app store info user progresses in levels. example: each level has number of sub-levels, sub-level stores 3-4 properties (strings , arrays) depending on user's progress.

the app simple , not lot store (about 150 levels , sub-levels maximum little amount of info in each) , not want create complicated multiple classes representing levels , sub-levels plus sqllite database. thought of simpler approach plenty manage info through gamemanager singleton.

recommend approaches @ needs store , manage info type of app. perhaps 1 of these or else:

nsuserdefaults + nsdictionary coredata + sqllite etc...

just want create sure not missing anything

it's much improve , less painful utilize core data. why sqlite?? core info saving objects in sqlite file on ios device , in xml in cocoa app. utilize plist files kind of strange, think. can set simple array, , if want display photos besides simple array? preferred way core info - 50% less code, apple says. utilize nsfetchedresultscontroller , you'll good!

iphone objective-c core-data plist nsdata

No comments:

Post a Comment