简体   繁体   中英

How can I implement SQLite database and FMDB into app?

I have a SQLite database that I want my app to read and load into a UITableView then push to a Detail View.

I am using the FMDB wrapper framework (https://github.com/ccgus/fmdb). I'm confused as to how exactly to do this as I've never used SQLite in an iPhone app before.

Can anyone help get me started? What code do I need to add to I'm assuming viewDidLoad?

I think you should use CoreData framework provided in iPhone SDK. Its pretty simple to use and it manages most of the complex things for us. It provides a way to use Sqlite database as a persistent store for your application. You can just start with it from the documentation provided in iPhone SDK documentation under "Core Data Programming guide" section.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM