哪里是iPhone-SDK最好的SQLite 3教程? [英] Where's the best SQLite 3 tutorial for iPhone-SDK?
问题描述
我正在寻找一个完整的教程,它不仅告诉我如何执行查询,还要我如何设置整个事情,包括设置库,创建数据库等等。
I'm looking for an complete tutorial which not just tells me how an query is executed, but also how I set up the whole thing including setting up the library, creating an database, and so on.
我在哪里可以找到它?
推荐答案
在iPhone上使用SQLite 3真的不是与在任何其他平台上使用它不同。您应该阅读一般SQLite文档。
Using SQLite 3 on the iPhone is really not that different from using it on any other platform. You should read the general SQLite documentation.
在您的iPhone应用程序中,您通常在应用程序委托的 applicationDidFinishLaunching:
方法中打开SQLite数据库。之后,你可以使用你的数据库。
In your iPhone app, you usually open your SQLite database in the applicationDidFinishLaunching:
method of your application delegate. After that, you can just use your database.
我用过 Gus Mueller的FMDatabase 课程。它们提供了一个围绕SQLite的薄包装。
I've used Gus Mueller's FMDatabase classes on the iPhone. They provide a thin wrapper around SQLite.
最后一点:似乎 CoreData 。您可以通过CoreData框架使用SQLite。
A final note: It seems CoreData will become available on the iPhone with OS version 3. You can use SQLite through the CoreData framework.
这篇关于哪里是iPhone-SDK最好的SQLite 3教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!