Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ... setting up the table view here ...
- self.tableViewOne.delegate = self;
- self.tableViewTwo.delegate = self;
- // ...
- // Somewhere in your implementation file:
- - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
- {
- if (scrollView == self.tableViewOne)
- {
- NSLog(@"Will begin dragging first");
- }
- else if (scrollView == self.tableViewTwo)
- {
- NSLog(@"Will begin dragging second");
- }
- }
- - (void)scrollViewDidScroll:(UIScrollView *)scrollView
- {
- if (scrollView == self.tableViewOne)
- {
- NSLog(@"Did Scroll first");
- }
- else if (scrollView == self.tableViewTwo)
- {
- NSLog(@"Did Scroll second");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment