Join Bill Weinman for an in-depth discussion in this video Parsing the feed with NSXMLParser, part of iOS SDK and SQLite: Building Data-Driven Apps (2013).
- View Offline
- Exercise Files
Parsing XML is a processor intensive operation and mobile devices tend to have limited processing power.…Even though Apple continues to improve the specs of each iteration of their devices,…in order to preserve the responsiveness that these devices are known for, we'll be doing…our parsing in a separate execution thread.…This ensures that we don't block the main thread, which could cause the user interface…to freeze during parsing.…Let's start by making a working copy of BWRSS-XML-03.…I'm going to use the -done version here, and I'm just option dragging to make a copy…and rename that to -04.…
I'll open the project in Xcode by double-clicking on this Xcode project file.…Now, remember we have this NSLog line, which says we have data, and that happens when we…finish loading from the NSURLConnection.…So, if I run this in the iPhone Simulator, I select the iPhone Simulator and click Run.…When I click on one of these feeds, you'll notice we'll get a message down here in the…log that says have data. Click on another feed, have data.…
- Prototyping the app
- Coding and working with a testbed
- Creating an Objective-C interface for SQLite
- Designing a database schema
- Creating the view controllers
- Reading and writing to the database
- Parsing the RSS feed with NSXMLParser
- Updating the item view with feed items
- Implementing the pull to refresh gesture for iOS 6
- Creating a universal application with multiple views
Skill Level Intermediate
1. An iOS Testbed
2. Building a Database Library
Understanding SQLite in iOS1m 41s
3. Creating the Table View App
4. Parsing XML Data
5. Using a Modal View
6. The Web View Controller
7. Creating a Preferences Pane
8. Adding a Feature
9. Creating a Universal Application
- 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.