Join Bill Weinman for an in-depth discussion in this video Implementing the pull-to-refresh gesture for iOS 6, part of iOS SDK and SQLite: Building Data-Driven Apps (2013).
- View Offline
- Exercise Files
Now let's take a look at how to implement the iOS 6 pull to refresh feature.…I'm going to create a working copy of our BWRSS-features-start, and I'm going to rename…that as -02, and we'll open in Xcode by double clicking on the Xcode project file.…We're going to be working in the ItemsTableViewController, and we notice up here at the top in our interface…section, this is the private members or the instance variables for this class.…
You'll notice there's a BOOL variable called canRefresh, and that gets set in -viewDidLoad.…If I come down to -viewDidLoad, and we're going to come out to our Finder and load up this…methods.txt file, and here is our new -viewDidLoad.…I'm going to just copy that and come over here in to Xcode and I will paste that in place.…So, you'll notice here I used the respondsToSelector method to check if our TableViewController…response to the selector called refreshControl, and if it does, then I know that we can use…Refresh so I can set this canRefresh equals true, or Yes in the case of Objective-C.…
- 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.