i am using the ccuserdefualt to save the data and it is work.
Suddenly, it can not flush the new data.
CCUserDefault::sharedUserDefault()->setIntegerForKey(“Level”, 61);
CCUserDefault::sharedUserDefault()->flush();
>
playedLevel = CCUserDefault::sharedUserDefault()->getIntegerForKey(“Level”);
I have set the data and check.
it just return the 0.
when i open the new project and copy it.
the data can flush and return right data.
May i know the problem?