Home

Awesome

Akaibu

What is it ?

Installation

Drag n drop the Akaibu.swift into your project directory. Enjoy ~

// By extending Akaibu, it inherits from NSObject and NSCoding automatically

class Model: Akaibu {
    //.....
}

tl;dr

That's all you need to know

model.saveWithKey(key) // archive to NSUserDefaults
// or
Akaibu.saveWithKey(model, key) // archive to NSUserDefaults


let model = Akaibu.loadWithKey(key) as? Model // load from NSUserDefaults

Clear saved objects

Akaibu.removeAll()

Why Akaibu ?

About Akaibu: