首页 > 其他 > 详细

监测uitableview 向上滑动和向下滑动的事件

时间:2014-09-28 17:04:54      阅读:336      评论:0      收藏:0      [点我收藏+]
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
    CGFloat height = _varietyTableView.frame.size.height;
    CGFloat distanceFromButton = _varietyTableView.contentSize.height - _varietyTableView.contentOffset.y;
    if (distanceFromButton == height)
    {
        NSLog(@"=====滑动到底了");
    }
    
    if (_varietyTableView.contentOffset.y == 0)
    {
        NSLog(@"=====滑动到顶了");
    }
}

 

 

转:http://www.360doc.com/content/14/0508/15/11029609_375812938.shtml

 

bubuko.com,布布扣

监测uitableview 向上滑动和向下滑动的事件

原文:http://www.cnblogs.com/ygm900/p/3998330.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!