adding sqlite3 to frameworks?
Im reading in this book "Wrox B开发者_运维技巧eginning IOS 4 Application Development" to try n figure out how to be able to save user data using sqlite3.
In this exercise it is telling me to start a new "view based Application". I do that and then it says to "Right Click" the "Frameworks" folder and add the "libsqlite3.dylib" Library to it.
Well i cant figure out how to add that library. I downloaded the source code for this book thinkin it might be in there and its not. So im assuming it is something built in to xcode but i cant figure out how to add this thing.
Can anyone lead me in the right direction so i can try and get started on this chapter?
While you can certainly use SQLite directly it's strongly recommended that you use CoreData instead these days - which is backed by SQLite but provides an Objective-C API. There are plenty of tutorials and articles and videos on how to use CoreData (check iTunes U - Stanford CS193P for an excellent introduction to CoreData). Also when you create a new CoreData application it automatically includes everything you need.
See my answer to this related question on how to do this (see the first Edit; the question was about adding libresolv but the steps are the same).
精彩评论