Join Bill Weinman for an in-depth discussion in this video Application overview, part of iOS SDK and SQLite: Building Data-Driven Apps.
- The application we'll be using for this course is a simple RSS reader, I call it BW RSS, and it's available for free in the App Store. This app is designed to be simple for the purpose of demonstrating how to retrieve, parse, store, update, and use data from an external data source on the iOS platform. It is fast, clean, and reliable, and it's not cluttered with a lot of features. Here's how it works. The main screen has a list of available feeds.
You select one and it displays a list of items in that feed. Select an item and it displays that item in a web view. You may add a feed by pressing on this little plus sign. This brings up a modal screen. And I'm just going to show the keyboard here. This brings up a modal screen where you can enter the URL of a new feed. Or, as in this case, a web page that has a link tag in the header with a link to the RSS feed.
This is sometimes called RSS autodiscovery. Once you have added a feed, you can use it immediately. And you may delete a feed at any time by either pressing this edit button and selecting the little minus symbol there or by swiping to the left. As new items come in on each feed, older items are automatically deleted. For example, on this test feed, there's already a lot of items here. And if I pull to refresh, it adds five more.
This is a test feed that automatically does that. It's running on one of my servers. There's a setting available in the iOS settings app to select the maximum number of items retained per feed. We can come in here to settings and scroll down and select our BW RSS app and max number of feeds, and we can select a new setting anywhere from 250 all the way down to 25.
And now it will just retain 25 items in that feed. This is a universal app, and it works especially well on large screens like the iPad or on the new iPhone 6 Plus. It takes full advantage of the new split-view controller on these larger devices while conforming to Apple's human interface guidelines. So I get the web view on the right-hand side, and I have this little collapse icon where I can collapse the web view to cover the entire screen.
As we go through the course, you'll see how these features were coded and how you can apply them to applications that you build for your own purposes and for your clients.
- 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