Guest User

Untitled

a guest
Dec 7th, 2012
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ... setting up the table view here ...
  2. self.tableViewOne.delegate = self;
  3. self.tableViewTwo.delegate = self;
  4. // ...
  5.  
  6. // Somewhere in your implementation file:
  7. - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
  8. {
  9.     if (scrollView == self.tableViewOne)
  10.     {
  11.         NSLog(@"Will begin dragging first");
  12.     }
  13.     else if (scrollView == self.tableViewTwo)
  14.     {
  15.         NSLog(@"Will begin dragging second");
  16.     }
  17. }
  18.  
  19. - (void)scrollViewDidScroll:(UIScrollView *)scrollView
  20. {
  21.     if (scrollView == self.tableViewOne)
  22.     {
  23.         NSLog(@"Did Scroll first");
  24.     }
  25.     else if (scrollView == self.tableViewTwo)
  26.     {
  27.         NSLog(@"Did Scroll second");
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment