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.
XML is one of the most common formats for raw data on the Internet today. It's used for XHTML, SOAP, RSS, and many other data delivery applications. The iOS SDK provides a powerful event driven XML Parser, like many iOS Services, it's event driven, and it works with the delegate protocol. The parsing process can take some time, so we use a separate execution thread for it. This allows the application to continue to respond to touch events, while the parsing takes place in the background.
This provides a better user experience as it keeps the application from seeming unresponsive. Before we can parse the XML, we need to get it from the network using the NSURLConnection Class. As we get the data from the network, we'll be displaying the activity indicator in the status bar. This gives the user some feedback so they know that something is happening and data is coming. Using the Activity Indicator is not an excuse to block User Input. The user must still be able to use the app. They will expect the user interface to still respond to input.
XML data is parsed and added to a local database. We store the data for two reasons: one, a portable device has limited available memory, so we cannot carry around a lot of data at once. Storing data in the database freezes up valuable RAM, while keeping data readily available. And two, this gives our application data persistence. So the user can maintain a context between sessions and they don't have to read and parse the data from the net every time they need it. So we drive the app from the database.
This allows the user to use the app without having to wait for data from the net every time they need it. This is the lifecycle of the data in our application. Read XML from the net, parse it, store the results in the database, and drive the application from the data in the database. This is a very common model for a data driven application as it allows the app to provide a great user experience.
Find answers to the most frequently asked questions about iOS SDK and SQLite: Building Data-Driven Apps (2013) .
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.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.