Quantcast
Viewing all articles
Browse latest Browse all 5

SQLiteWrapper

Matteo Bertozzi has written a simple SQLite Wrapper with examples for Mac and for the iPhone. The wrapper class has the same source code for both platforms. On the same page you can also find example code for Mac and the iPhone.

Below is a simple example of how to use it:

Sqlite *sqlite =[[Sqlite alloc] init];
 
NSArray*paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
                             NSUserDomainMask, YES);
NSString*documentsDirectory =[paths objectAtIndex:0];
NSString*writableDBPath =[documentsDirectory

read more


Viewing all articles
Browse latest Browse all 5

Trending Articles