• end draging,


    -(void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate

    {

        

        if (scrollView.contentOffset.y <= - 60 && tableViewResource == 2 && !loading) {

            [selfloadInteractData];

        }

        

        if ([self endOfTableView:scrollView] <= -65.0f && !_loading)

        {

            if (scrollView.contentOffset.y > 60) {

                if (districtButtonTag == 210) {

                    if (worksHasMore) {

                        worksPageIndex = worksPageIndex + 1;

                        [self loadWorksData];

                    }

                }else{

                    if (ringHasMore) {

                        ringPageIndex = ringPageIndex + 1;

                        [self loadRingData];

                    }

                    

                }

                

            }

     

        }

        

       //    if (scrollView.contentOffset.y <= - 60 && tableViewResource == 0 && !loading) {//作品信息没有必要刷新的

    //        if (districtButtonTag == 210) {

    //            [self loadWorksData:1];

    //        }else{

    //            [self loadRingData:1];

    //

    //        }

    //    }

    }

  • 相关阅读:
    Android Studio快捷键
    Eclipse常用快捷键
    沉浸式状态栏
    JAVA起名规范
    c语言求数组长度
    自定义checkbox风格
    退出所有应用,监控打开了什么活动
    android权限大全
    广播接收者Receiver
    ImageView的常用属性
  • 原文地址:https://www.cnblogs.com/guligei/p/3270706.html
Copyright © 2020-2023  润新知