Pull-to-Refresh
There’s one other common table task we should attend to with our table: We haven’t given the user a means of refreshing the tweets. We had this in the last chapter with the Show My Tweets button, but now that our whole view is a table (for now, anyway), there’s no way to expose this functionality. It doesn’t matter now with our mock data, but it will matter a lot if we can’t get new tweets from the Internet. How are we going to fix that?
Many table-based iOS apps use a pull-to-refresh gesture, in which scrolling to the top of the table and then pulling down to scroll further is interpreted as a request for the app to refresh its data. There were a variety of third-party implementations of this gesture for a number of years, and ...
Get iOS 8 SDK Development, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.