Sephiroth87 / ODRefreshControl

A pull down to refresh control like the one in Apple's iOS6 Mail App
MIT License
2.15k stars 385 forks source link

When start refreshing from code, refresh control reveals itself. #43

Closed nestserau closed 11 years ago

nestserau commented 11 years ago

I had an issue that, when I had a populated table-view and then I started refreshing the list from code, refresh control wasn't visible. So the user wasn't aware of some network process to go behind the scenes. Now, when code refresh is invoked, the scrollView is scrolled with animation in way that refresh control is visible during refresh operation. Not sure though, it's the best way of achieving this. You probably will find a better way as an author of the component.

Sephiroth87 commented 11 years ago

The code itself it's fine, but as I've said already a number of times, this is a design choice, the animation is left to the caller. This is the same as the original UIRefreshControl, or the one used in the Twitter app for example