samvermette/SVPullToRefresh — pull request #7 by datwelk (2012-05-03 08:13:20+00:00)
Title: Added new 'initial loading' feature and fixed bug.

Added a new feature. If this feature is enabled, the pullToRefresh view will be shown immediately after it is added to a scrollview and will call the actionhandler as well. It's similar to the behavior of the pullToRefresh view in the Dutch Nu.nl app: when the app is launched first, the pullToRefresh view is shown and hides after the data is loaded. A screenshot from the Nu.nl app after launching it: http://whirlingcode.com/NUnlApp.PNG

The new feature can be enabled by calling addPullToRefreshViewWithActionHandler:(void (^)(void))actionHandler showAtInitialLoading:YES. If 'NO' is passed to the showAtInitialLoading parameter, the pullToRefresh view won't be showed right after it's added to a scrollview and data will only be called when the pullToRefresh view is triggered.

Also, I fixed a bug that caused the pullToRefresh view to change state if the user scrolled the pullToRefresh view while it was in loading state.