Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use FMDB as a Framework in an iPad application?

I am currently developing an iPad application. At one stage, there is a series of sliders and buttons, when you press the button, it stores the value of the slider into a table. First of all, I need to use SQLite to manage the database. I found a project called FMDB that is a wrapper around SQLite for iPhone/Mac apps. I am pretty new to iOS/Objective-c developpment and want to know how you add FMDB (or an FMDB framework) into an app.

-Tristan

like image 309
Tristan Avatar asked Jul 11 '12 18:07

Tristan


1 Answers

Download the FMDB source here: https://github.com/ccgus/fmdb

To import the src folder, you can just drag and drop it into Xcode's project navigator. On prompt, check to copy files in. You may then want to rename the folder from src to FMDB, and possibly create another folder to categorize external libraries as well.

Don't forget to include the libsqlite3.dylib into your project. To do this, click on your project in the navigator, click on your project's name under TARGETS, and go to Build Phases tab. Expand the Link Binary With Libraries and click the + button to add it in.

like image 143
James Kuang Avatar answered Nov 02 '22 20:11

James Kuang