I want to detect if mytable view has been scrolled, I tried all touch events like this one:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesBegan:touches withEvent:event];
//my code
}
but it seems that all touch events don’t response to scroll but they response only when cells are touched, moved,…etc
Is there a way to detect scroll event of UITableView ?
If you implement the
UITableViewDelegateprotocol, you can also implement one of theUIScrollViewDelegatemethods:or
For example, if you have a property called
tableView:This is because
UITableViewDelegateconforms toUIScrollViewDelegate, as can be seen in the documentation or in the header file.