Learn to Build an RSS Reader for iOS Devices with SQLite


show more Implementing the pull-to-refresh gesture for iOS 6 provides you with in-depth training on Developer. Taught by Bill Weinman as part of the iOS SDK and SQLite: Building Data-Driven Apps (2013) show less
please wait ...

Implementing the pull-to-refresh gesture for iOS 6

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 ...

Implementing the pull-to-refresh gesture for iOS 6
Video duration: 3m 41s 3h 45m Intermediate

Viewers:

Implementing the pull-to-refresh gesture for iOS 6 provides you with in-depth training on Developer. Taught by Bill Weinman as part of the iOS SDK and SQLite: Building Data-Driven Apps (2013)

Subject:
Developer
Software:
iOS
Author:
please wait ...