Join Bill Weinman for an in-depth discussion in this video Reading data from the Internet with NSURLConnection, part of iOS SDK and SQLite: Building Data-Driven Apps.
- View Offline
- Exercise Files
- Before we can parse the RSS feed,…we need to fetch it from the internet.…Here I have opened a working copy of BWRSS-Items-03…from Chapter 4 of the exercise files.…And you'll notice there's a new class here…called LoadItems.swift.…The Load Items class has both the NSURLConnection code…and the NSXMLParser code for loading…and parsing the RSS feed from the web.…In this lesson, we'll be concentrating on…the NSURLConnection code.…
NSURLConnection is a standard OSX…and iOS class for fetching an object from a web server.…It performs a request based on a URL.…And it uses delegate protocols to allow you…to control the connection…and retrieve data from the server.…In order to preserve the responsiveness…of the table view interface,…we'll be using NSURLConnection to perform…an asynchronous, or non-blocking, transfer.…For and asynchronous connection,…you need to implement two delegate protocols:…NSURLConnectionDelegate, that's this one here,…and NSURLConnectionDataDelegate.…
So we're going to start with the constructor here.…
- 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.