Just curious, as it doesn’t immediately seem possible, but is there a sneaky way to leverage the new iOS 6 UIRefreshControl class without using a UITableViewController subclass?
I often use a UIViewController with a UITableView subview and conform to UITableViewDataSource and UITableViewDelegate rather than using a UITableViewController outright.
On a hunch, and based on DrummerB’s inspiration, I tried simply adding a
UIRefreshControlinstance as a subview to myUITableView. And it magically just works!This adds a
UIRefreshControlabove your table view and works as expected without having to use aUITableViewController🙂EDIT: This above still works but as a few have pointed out, there is a slight “stutter” when adding the UIRefreshControl in this manner. A solution to that is to instantiate a UITableViewController, and then setting your UIRefreshControl and UITableView to that, i.e.: