To get the refresh controller configured:
ViewDidLoad(), declare the
UIRefreshControll and set its target to a new function. In that function, do your business, and then remember to
Note: The if statement that follows the refreshControll declaration is simply checking for iOS version in order to determine which kind of refresh controller is needed.