UITableView滚动触底的响应

来源:互联网 发布:手机购物软件排行 编辑:程序博客网 时间:2024/04/29 03:34
- (void)scrollViewDidScroll:(UIScrollView *)scrollView{    if(myTableView.contentOffset.y<0)    {        //it means table view is pulled down like refresh        return;    }    else if(myTableView.contentOffset.y >= (myTableView.contentSize.height - myTableView.bounds.size.height))    {        NSLog(@"hit bottom!");    }}