Viewers: in countries Watching now:
The iOS software development kit (SDK) includes the popular SQLite library, a lightweight yet powerful relational database engine that is easily embedded into an application. In this course, Bill Weinman teaches you how to build an RSS reader for iOS devices, integrating XML data and a streamlined interface. He explains how to use the SQLite database, display information in a table view, code view controllers, and create a preferences pane for your app. The resulting application is optimized for all iPhone and iPad displays.
SQLite is a full featured relational database. It's small, it's fast, it's lightweight, and it's perfectly suited for mobile applications. The SQLite Database Management System lives entirely in a driver. This means that there is no server and no client. You access the database directly. The database itself is fully contained in one file. This makes it very convenient to use in a mobile environment. To say that iOS supports SQLite natively is to say that the driver is built-in, the interface to the driver is written in C, so it's not Object Oriented, and it's not an Objective-C Interface.
To make it easier to use, we will build a Native Object Oriented Interface for SQLite in Objective-C. This kind of interface is sometimes called a Wrapper as it wraps one interface around another. It's designed to be convenient and easy for our development purposes. It's general purpose, so you can use it in your future projects. You have the source code, and you may modify it and expand it to suite your needs. To further support the iOS Model-View-Controller architecture, we will build a more specific interface on top of our general interface.
We will do this by subclassing our general interface and adding methods to specifically support this application. This makes it very easy for us to integrate the database into our application. Subclassing a normalized interface like this is a common and valuable technique in an object-oriented environment. As you follow along with the development process in this chapter, think about how you will use and expand on these techniques in your own projects.
Find answers to the most frequently asked questions about iOS SDK and SQLite: Building Data-Driven Apps .
Here are the FAQs that matched your search "" :
A: The RSSDB library had to be updated to work around a bug in the iOS 7 SDK.
There is a bug in the iOS 7 SDK that prevents the BWDB fast enumeration implementation from working on a device. The symptom is code that runs fine on the emulator, but not on a device. iOS devices use an ARM processor, while the emulator runs on your Mac's Intel processor. This points to the LLVM ARM code generator as the source of the bug. Because the bug appears to be in the LLVM compiler, it may be some time before it is fixed.
As a workaround we have changed the getFeedIDs and getItemIDs methods in the RSSDB library so they don't use Objective C fast enumeration.
Please note that this same bug also affects some of the BWDB testbed code in Chapter 2. The result is that it will run on the emulator but not on a device.
"Used type va_list (aka_builtin_va_list) where arithmetic or pointer type is required"
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.