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

Pull to refresh for horizontal orientation #35

Closed rockia closed 11 years ago

rockia commented 11 years ago

First I would like to thank you very much for this sharing. It's awesome and I am adding it to my project.

Is there a way to modify it a little bit so it could support landscape orientation better? Not sure if it's my tableview cell too high or what, I have to pull really fast in order the "refresh" part to work, otherwise, it's just "pull-and-bounds-back". By saying "really fast", I meant almost like a swipe from top to bottom.

For comparison, in portrait orientation, I can slowly drag the tableview down and release to refresh. Any ideas? Many thanks!

rockia commented 11 years ago

I changed the #define kMaxDistance value from 53 to 35, and it seems to work better in landscape orientation. Thanks for the awesome work!!!

Sephiroth87 commented 11 years ago

As a fast solution, it's ok like this, but I'm trying to find a better solution, wait for it :)