iOS Question Save Map to file,boolean value bug!

chjk

Member
Licensed User
Longtime User
configvalue.PNG

rateView value is true,but when reload file to Map rateView value is 1.
initConfig.PNG

So that it is false!
getconfig.PNG

What should I do to get the right value?Thanks!
 
if the map is in memory you can store any object, but when it is written to a file you must use only text fields.
So, don't store boolean but use instead "0" or "1" for example.
This is how it works ....
 
Upvote 0
if the map is in memory you can store any object, but when it is written to a file you must use only text fields.
So, don't store boolean but use instead "0" or "1" for example.
This is how it works ....
I see, but get boolean value is false, should be true!
 
Upvote 0
I told you. You can't use file.writemap and file.readmap if your map contains any non text fields.
 
Upvote 0
Back
Top