Start learning with our library of video tutorials taught by experts. Get started
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.
So now, I'd like to show you an example of how I've used the Testbed in this application, so you can get an idea of how to use it yourself. As I mentioned before, when I have a specific task to accomplish, I'll start with the Testbed like this one and do some prototyping to figure out what approach to take. This is an example of a task that I needed to play with in order to understand it well enough. So, let's open Testbed-dates. The project is in the Xcode project file, and I'll double-click on that, and that will open it up in Xcode.
And if we open this up to the source code here, you'll notice in TestbedViewController everything else is the same. I'm just going to get rid of that so that we have a little room for the code. In this runTest function, you'll notice that I have a bunch of date testing codes. So, I have Testbed version and then date testing. And I've got a for loop with a boxed array of strings. And then for each of those strings I'm converting the string to a date format and then I'm displaying that in a number of different date formats. So, let's Run this in the iPhone simulator.
You'll notice that here are each of those dates and in each of these different formats. And so, I'm able to play with my approach for how it is that I want to accomplish this task and see the results in real time here on the simulator screen. So like I've said, the Testbed is a useful tool, it's not an essential tool. You can use NSLong for the same purpose. But it is useful, and I use it a lot in my iOS development work, and we'll be using it later in this course. I hope you find it a useful tool for your projects as well.
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"
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.