Store multiple values or array in userdefault?

Hi,

Is there a way to store multiple values or an array in userdefault?

I have data of 4 *10 (4 columns and 10 rows) which has value of string and integer, and for such small data i don’t want to use sqlite for it, as it seems complicated and will take time to work that out as i haven’t done it before and can’t find good tutorial on it…

so is there a way to store multiple values or an array in userdefault?

You can store a ValueVector inside a Value.

Never tried that, but as per my requirement i have to use sql, so going with that.

But can you show me how to load the data retrieved from the database into scrollview? as i couldn’t find any reference…

And i only found one tutorial on how to use sqlite and that is also 2 years old - A simple Tutorial How to use SQLite in cocos2d-x ……(Tutorial by YUYE)

Its taking lot of time to just get sql working and load data into scrollview, so please help me out here…

The tutorial you referenced is still valuable. I used it to setup SQLite back when it came out.