我用UserDefault::getInstance()->setIntegerForKey(“Max”,max)保存了,但是读取的时候没读到,然后用断点调试了下 发现没有保存的值,根本就没有xml文件,求帮忙是怎么回事?
UserDefault::getInstance()->flush()
我就是用了flush() 没用。
我用UserDefault::getInstance()->setIntegerForKey(“Max”,max)保存了,但是读取的时候没读到,然后用断点调试了下 发现没有保存的值,根本就没有xml文件,求帮忙是怎么回事?
UserDefault::getInstance()->flush()
我就是用了flush() 没用。