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];

//

//        }

//    }

}

posted @ 2013-08-20 17:50  路在脚下,  阅读(216)  评论(0编辑  收藏  举报