CCUserDefault on simulator


#1

When I start my game second time - data, loaded with CCUserDefault, have default values.
Does it work on ios simulator?


#2

Hi, did you call flush after set method to persist your data? Ex. setIntegerForKey(“mykey”, 2); and after any set call you need to call flush method on CCUserDefault.


#3

Thanks. It works !