I need to make a local highscore list with 10 entries for my game. I have neen looking at NSDictionary examples but they are all pretty bad! Could anyone quickly show me how to firstly order the top ten scores, then store them, and then display them (in order)???
Thanks
Create class “Score” with properties:
NSString name(name of player) , anddouble score(player’s score).Then add instances of this class to one NSArray and put this NSArray to NSUserDefaults. And when you need them, just get this NSArray from NSUserDefaults. That’s it. I think 🙂