iphone-statefulness


Library to easily add statefulness to your iPhone app.

Stateful iPhone apps should be really easy. Like marking inheriting from a stateful class, mark up the members and calling a single method. Like this library.

Usage

  1. Inherit from one of the following classes: StatefulObject, StatefulViewController or StatefulTableViewController, instead of NSObject, UIViewController or UITableViewController.
  2. Change your application delegate to inherit from StatefulAppDelegate
  3. In applicationDidFinishLaunching:, call the loadStateForVersion:timeoutInSeconds: function. if ([self loadStateForVersion:1 timeoutInSeconds:0]) // if timeoutInSeconds is zero, never time out the state { }

    Name all members you want to save with the prefix "stateful

Project Information

Labels:
iphone objective-c