Blog

Write/Read simple data using NSUserDefaults, without Sqlite3

if you want to store simple data, or small, you can do without using sqlite3.
In these cases using NSUserDefaults, is very easy to use.

We must call NSUserDefaults to start with:

After we called, we can store or read data!
In this simple way:

WRITE

If we want read what we have save in the key stringKey, we can code:
READ

Here I’ll show you all the ways to save your data (integer, float, or objects):
WRITE

READ

7 Comments

  1. Olli Warelius

    I’m creating a collaborative blog and I need to know if I can transform a blogspot blog into one where anyone can add content and edit or change the text. Maybe there is another type of blog whee you can do this.. Thanks everyone..

    1. Paul Production

      Hello Olli, i don’t know if there is a blog where do it this…
      but you can create a blog where the people can register to it and post on your site

  2. Margarete Bryan

    Excellent blog here! Also your website loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol

    1. Paul Production

      Thank you very much..is the host very fast, build for wordpress! But i use some trick of developer lol

    1. Paul Production

      Just great!

  3. Safina

    Hi Buddy,Yes i faced same issue and search all over the web which inceduls stack overflow.i did not found any solution then i decided to use uiimageview and sending it most back to the parent view which solved the problem.and finally by reading your post i confirmed that what i did was absoultly right.Cheers,Vipul Vyas

Leave a Comment

Your email address will not be published. Required fields are marked *