Join Bill Weinman for an in-depth discussion in this video Course overview, part of iOS App Development: Building Data-Driven Apps with SQLite.
- The purpose of this course is to show you how to develop an iOS application that uses an external data source and uses that data effectively. In order to best demonstrate the techniques you will need to accomplish this, I have built a simple data-driven application in the form of an RSS newsreader. Many applications derive their content or even their navigation from external data. These are called data-driven applications. The application presented here is a simple example of a data-driven application.
The techniques you'll learn here will apply to many applications in many different categories. Data sources today are commonly in an XML format, and iOS provides native support for XML. In this application, we'll be reading RSS feeds. RSS feeds are typical of many types of data feeds, and the XML parsing techniques covered here will apply to many different data sources. After receiving and parsing an XML feed, you'll often want to store that data on the device.
iOS provides the SQLite database engine as a native format for persistent data storage. SQLite is a powerful database that is small, fast, portable, and reliable. SQLite is also supported on many other mobile platforms, including Android and Windows Mobile. Once you have your data, you'll want to display that data on the screen. iOS provides the native table view display model, which is well-suited for this purpose. Table view is powerful and flexible, and you will likely use it for many of your data-driven applications.
Often external data sources provide links to webpages or other dynamic data. RSS feeds typically link to a webpage for their associated content. iOS provides a WebKit based web view with all the power of the internal Safari browser for displaying web content. These days iOS is more than just the iPhone so I will show you how to make a universal application that supports all the various form factors of iOS devices, including iPhone, iPad, and the new iPhone 6 Plus, all while using a single code base.
This is all designed to give you the tools you need to use data in your applications: reading data from an external data source, storing data in a local database on the device, and displaying that data to provide a compelling user experience for your audience.
- Building a testbed
- Creating an Objective-C interface for SQLite
- Creating a CRUD interface
- Designing the database schema
- Creating the main table view
- Creating the items table view
- Adding new feeds
- Parsing feeds with NSXML Parser
- Viewing webpages
- Preparing icons and toolbar images
- Adding a preferences pane
- Including pull-to-refresh and other features