CCUserDefault on simulator

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

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.

Thanks. It works !