leah / PullToRefresh

A simple iPhone TableViewController for adding pull-to-refresh functionality.
http://blog.leahculver.com/2010/07/iphone-pull-to-refresh.html
MIT License
1.91k stars 252 forks source link

Image transform in scrollView:didScroll not called #12

Open jmstone617 opened 12 years ago

jmstone617 commented 12 years ago

I'm new to github, so pardon the noob-ness. This implementation is fantastic and I had to do very little code changing to make it work. One thing I did notice was that, in the current implementation, my code was never entering the else if (isDragging && scrollView.contentOffset.y < 0) of the scrollView:didScroll delegate call. Thus, my arrow was never changing and my text was never updating. However, since a scrollView inherently has a dragging BOOL property, I changed the line to else if (scrollView.dragging && scrollView.contentOffset.y < 0), and it works perfectly. Now, this may be because I am not using this in a class that subclasses PullRefreshTableViewController because it's subclassing of UITableViewController didn't work for my scenario. Anyways, I hope this helps!