tags:

views:

59

answers:

2

Hi,

I made story book with iphone sdk . I created different views by coding. When user read story book I want to know that currently which view is read by user because I want to store value of current view and If user closed the application and start again at a time user can read from current. So guide me about the problem.

Thanks !

A: 

There are several ways to store such information:

  1. CoreData
  2. SQLite
  3. A text file
  4. etc.

Take your pick.

Marcelo Cantos
please understand me with example because i am new in iphone programming
http://www.sqlite.org/quickstart.html
Marcelo Cantos
+1  A: 

The most common way is to store such setting information in the user defaults. Use NSUserDefaults.

unset
please understand me with example because i m new in iphone programming
@jaydp13: Follow the supplied link. On that page, there's another link to a companion guide. It eventually leads to [this page](http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/UserDefaults/Tasks/UsingDefaults.html#//apple_ref/doc/uid/20000719-BAJFBAAH), which presents code.
Marcelo Cantos