美文网首页iOS知识
iOS UIScrollView UITableView UIC

iOS UIScrollView UITableView UIC

作者: iOS_Ru | 来源:发表于2020-09-07 17:32 被阅读0次
    
    - (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---");
    }
    
    

    相关文章

      网友评论

        本文标题:iOS UIScrollView UITableView UIC

        本文链接:https://www.haomeiwen.com/subject/tlelektx.html