Join Bill Weinman for an in-depth discussion in this video Updating the item view with the feed items, part of iOS SDK and SQLite: Building Data-Driven Apps.
- At this point, we've loaded the RSS feed…using NSURLConnection…and we parsed it with NSXMLParser.…Now we're ready to display the feed…in the table view controller.…Here I've opened a working copy of BWRSS…items 03 from chapter four…of the Exercise files.…Now that the data is loaded in the database,…displaying it is not much different…than any other table view.…The first thing you'll see here in this class…is this view will appear and so this actually gets called…before the view appears and so I do a couple of things.…
I set the row height for the table view…and here I delete the old items from the feed…and that's calling delete old items in RSSDB…and if we look here, we get item methods,…deleteOldItems.…Go ahead and close the left bar here so we can see this.…So this uses a pretty clever little piece of SQL.…It uses an SQL sub select to order the items…by publication date descending,…so the first items are the newest ones,…and then it uses the limit clause to limit…that to the number that we're allowed to keep…
- 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
Skill Level Intermediate
Android SDK: Local Data Storagewith David Gassner3h 41m Intermediate
1. Building a Testbed
2. Building the Database Library
3. Creating the Main Table View
Populating the table view3m 30s
4. Creating the Items Table View
5. Adding New Feeds
6. Viewing Webpages
7. Preparing the Visual Assets
8. Adding a Preferences Pane
9. Adding Features
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.