Tell me please. With this form of recording:
- (void)scrollViewDidScroll:(UIScrollView *)scrollView CGPoint offset = scrollView.contentOffset; CGRect bounds = scrollView.bounds; CGSize size = scrollView.contentSize; UIEdgeInsets inset = scrollView.contentInset; float y = offset.y + bounds.size.height - inset.bottom; float h = size.height; float reload_distance = 800; if(y > h - reload_distance && loadData == NO && new == NO) { NSLog(@"load more rows"); [APIDownload downloadWithURL:MyWebString delegate:self]; }
The problem is that the [APIDownload downloadWithURL: MyWebString delegate: self] method; It is not called until the scrolling does not stop, tell me how to fix it.