Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS ODRefreshControll pull length

does anyone know how to reduce the amount of pulling you need to do in order to refresh for a ODRefreshControll? I've fiddled with the default settings but had no luck. There isn't much documentation on it. Has anyone had any success with this?

like image 420
George Ciobanu Avatar asked Feb 19 '26 11:02

George Ciobanu


1 Answers

- (void)dropViewDidBeginRefreshing:(ODRefreshControl *)refreshControl
{
    double delayInSeconds = 2.0;
    dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
    dispatch_after(popTime, dispatch_get_main_queue(), ^(void){

        //ADD
        [self callMethod];

        [refreshControl endRefreshing];
});
}
like image 50
Nivesh666 Avatar answered Feb 22 '26 01:02

Nivesh666



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!