Giter Club home page Giter Club logo

Comments (11)

grp avatar grp commented on August 20, 2024

This should work correctly with the new UIWebView features available in iOS 5.

from pulltorefreshview.

Gam3sFan avatar Gam3sFan commented on August 20, 2024

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.

grp avatar grp commented on August 20, 2024

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.

mriccasyncpoint avatar mriccasyncpoint commented on August 20, 2024

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.

grp avatar grp commented on August 20, 2024

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.

mriccasyncpoint avatar mriccasyncpoint commented on August 20, 2024

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.

grp avatar grp commented on August 20, 2024

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.

mriccasyncpoint avatar mriccasyncpoint commented on August 20, 2024

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.

grp avatar grp commented on August 20, 2024

I can't write your app for you, unfortunately.

from pulltorefreshview.

kylehowells avatar kylehowells commented on August 20, 2024

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.

mriccasyncpoint avatar mriccasyncpoint commented on August 20, 2024

thank's!!
PS: and it works on ios 4.x

from pulltorefreshview.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.