soffes / SSPullToRefresh

Simple and highly customizable pull to refresh view
MIT License
885 stars 139 forks source link

Taking top inset into consideration when detecting refresh #12

Closed johnlinvc closed 11 years ago

johnlinvc commented 12 years ago

I'm creating an table view that has a big clear Area in the top to show the background view. But after I set the contentInset, the pull to refresh view start to behave strange. The view start to refresh after the content view show on screen, instead of after pull "over" the top.

soffes commented 12 years ago

I'll have to play with this a bit before merging. If I remember right that variable is used to see how much the view has been pulled. After that the setter method internally manages keeping the contentInset in sync with what it should be.

soffes commented 11 years ago

All of this has been implemented now. Thanks for your work!