bogardon / mspulltorefreshcontroller Goto Github PK
View Code? Open in Web Editor NEWpull to refresh controller
License: MIT License
pull to refresh controller
License: MIT License
Hiya,
Thanks for MSPullToRefreshController!
I've been trying to get MSRefreshDirectionLeft working on a scroll view with pagingEnabled = YES (the UI is similar to the weather widget in the notification centre), and haven't been having much luck.
It doesn't always bounce back to the inset returned by - (CGFloat)pullToRefreshController:(MSPullToRefreshController *)controller refreshingInsetForDirection:(MSRefreshDirection)direction
. Works fine if I disable pagingEnabled.
Currently the best workaround I have is disabling paging in canEngageRefreshDirection
and re-enabling it again in didEngageRefreshDirection
after a short delay (and didDisengageRefreshDirection
).
I can attach some sample code if you have any interest in helping out with this.
The code appears to assume that it has exclusive use of the scrollView.contentInset, at least in the relevant direction. I'm not sure what the best solution would be. Observing contentInset might be the beginning of a solution, but the changes to it could confuse the host app (depending on how it was being used), and PTRC would have to deal with observing its own stores to contentInset.
Alternatively, PTRC could act as a proxy for scrollView.contentInset. The host would access it there, and PTRC could calculate the composite inset and send it to scrollView. (I'm armwaving a bit here, but you get the idea.) An app that never sets contentInset could ignore the whole thing, of course.
My app not only sets contentInset, but it can change it as a side effect of a refresh.
Hi,
This looks great. I'd like to use it in something I'm working on, but it's missing a license. Any chance you'd consider formally slapping MIT/X11 (or something similarly permissive) on it?
Thanks!
I just saw the refresh in example, can enable both in one tableview? Thanks.
Hi there,
A wonderful component and the custompulltorefresh is great.
However, i have an issue where the customrefreshview does not hide after a refresh
Any suggestions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.