Comments (11)
This should work correctly with the new UIWebView features available in iOS 5.
from pulltorefreshview.
But I do not use iOS 5 because I have been programming for the App Store, and then my application is compatible with iOS 4 +. Tweak is available on Cydia "Pull To Refresh Safari" I thought it would be easy.
from pulltorefreshview.
There is no public API available for accessing the UIScrollView backing a UIWebView before iOS 5, so it is not possible to use PullToRefreshView there.
from pulltorefreshview.
but, if you add the code in the viewdidload in the webview class, i get some errors.
why?
PS: i used xcode 4.2b2 (ios5)
thanks
from pulltorefreshview.
iOS 5 is under nondisclosure agreement, do not discuss it publicly. If you would like to discuss questions about iOS 5, please use the provided Apple Developer Forums.
from pulltorefreshview.
thanks a lot!
i've another question, whit the pulltorefresh in scroll view, i can't dismiss with success the view, i try whit this code:
- (void)pullToRefreshViewShouldRefresh:(PullToRefreshView *)view{
//my other code
[NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(fineagg) userInfo:nil repeats:TRUE];
}
-(void)fineagg{
PullToRefreshView *pull;
pull = [[PullToRefreshView alloc] initWithScrollView:scrollView2];
[pull finishedLoading];
}
why? where i wrong?
from pulltorefreshview.
You are creating a brand new pull-to-refresh view and then stopping that
one. Why not just tell the first one you created to stop loading instead
of a new one that isn't even shown anywhere?
On Fri, Jul 1, 2011 at 1:18 PM, furiosfast <
[email protected]>wrote:
thanks a lot!
i've another question, whit the pulltorefresh in scroll view, i can't
dismiss with success the view, i try whit this code:
- (void)pullToRefreshViewShouldRefresh:(PullToRefreshView *)view{
//my other code
[NSTimer scheduledTimerWithTimeInterval:0.5 target:self
selector:@selector(fineagg) userInfo:nil repeats:TRUE];
}-(void)fineagg{
PullToRefreshView *pull;
pull = [[PullToRefreshView alloc] initWithScrollView:scrollView2];
[pull finishedLoading];
}why? where i wrong?
Reply to this email directly or view it on GitHub:
https://github.com/chpwn/PullToRefreshView/issues/1#issuecomment-1486805
from pulltorefreshview.
ok, and how can i solve it:
- (void)pullToRefreshViewShouldRefresh:(PullToRefreshView *)view{
//my code and
[NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(fineagg) userInfo:nil repeats:TRUE];
}
-(void)fineagg{
[pull finishedLoading];
}
from pulltorefreshview.
I can't write your app for you, unfortunately.
from pulltorefreshview.
To answer the original question, I just put it in a UIWebView and it works fine.
UIScrollView *webViewContentView = nil;
for (UIView *checkView in [self.webView subviews] ) {
if ([checkView isKindOfClass:[UIScrollView class]]) {
webViewContentView = (UIScrollView*)checkView;
break;
}
}
pullView = [[PullToRefreshView alloc] initWithScrollView:webViewContentView];
pullView.delegate = self;
[webViewContentView addSubview:pullView];
from pulltorefreshview.
thank's!!
PS: and it works on ios 4.x
from pulltorefreshview.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulltorefreshview.