Reputation: 2268
I use UITableViewController, and I implement
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
{
//my code
}
inside "//my code", how can I know that the scroll event was fired from tableheaderview area, not anywhere else in my table, in other words, how to know that the start of scrolling event was in table header view or not.
Thanks in advance.
Upvotes: 1
Views: 548
Reputation: 958
NSLog(@"scrollView.contentOffset.y= %f",scrollView.contentOffset.y); and
NSLog(@"scrollView.contentOffset.x= %f",scrollView.contentOffset.x);
using these you can get the position of the scrolling tableview.may be it will help you.
Upvotes: 1