Alaa Eldin
Alaa Eldin

Reputation: 2268

tableheaderview scroll event

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

Answers (1)

Emon
Emon

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

Related Questions