So I\'m working on a simple iPhone game and am trying to make a local high score table. I want to make an array and push the highest scores into it. Below is the code I have
You can only add objects to an NSArray, so if you want you add CGFloats to an array, you can use NSNumber.
NSArray
CGFloat
NSNumber
Eg:
NSNumber * aNumber = [NSNumber numberWithFloat:aFloat];
Then to get it back:
CGFloat aFloat = [aNumber floatValue];