Touch events on UITableView?

前端 未结 7 686
[愿得一人]
[愿得一人] 2020-12-23 10:26

I have UIViewControllerand UITableView as child in the view, what I want to do is when I touch any row I am displaying a view at bottom. I want to

7条回答
  •  庸人自扰
    2020-12-23 10:43

    Try this methods:

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

    Use scrollViewDidEndDragging like alternative of touchesEnded. Hope it helps.

提交回复
热议问题