iOS知识

iOS UIScrollView UITableView UIC

2020-09-07  本文已影响0人  iOS_Ru

- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
    BOOL scrollToScrollStop = !scrollView.tracking && !scrollView.dragging && !scrollView.decelerating;
        if (scrollToScrollStop) {
            [self scrollViewDidEndScroll];
        }
}

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
    if (!decelerate) {
        // 停止类型3
        BOOL dragToDragStop = scrollView.tracking && !scrollView.dragging && !scrollView.decelerating;
        if (dragToDragStop) {
            [self handlePlayView];
        }
    }
}

- (void)scrollViewDidEndScroll {
    NSLog(@"--already-stop---");
}

上一篇下一篇

猜你喜欢

热点阅读