In one of my recent IOS projects, I wanted to store some data in my app’s local directory. There are usually two options that are built into the IOS platform: the first is to use sqlite (or the various wrappers, like fmdb), and the other option is to use NSUserDefaults. Both of these aren’t quite the interface that I wanted: a simple key-value store.
After Googling a bit, I found that people were successfully using leveldb. LevelDB is a fast key-value storage library written at Google. It’s part of the Chrome browser. Because LevelDB is written in C++, it can be included in an Objective-C program. Because I couldn’t find any wrappers I liked, I decided to write my own, and open the source:
https://github.com/hoisie/LevelDB-ObjC
Enjoy!