3

I try a lot methods but not get solution

In my case, my view hierarchy:

UIView
  UIScrollView
  LeftContainer + RightContainer
                (in RihgtContainer) ViewContainer 
                                      TableView

enter image description here

I tried these:

subclassing Scrollview and

 - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self.nextResponder touchesBegan:touches withEvent:event];
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
   if(!self.dragging)
    {
        [self.nextResponder touchesMoved:touches withEvent:event];
    }
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self.nextResponder touchesEnded:touches withEvent:event];

}

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer


innerTableView.scrollEnabled = YES;
innerTableView.alwaysBounceVertical = NO;
Yan Li
  • 1,699
  • 2
  • 16
  • 25

1 Answers1

0

You can tray to set the delaysTouchesBegan to true on your scrollview... like here https://stackoverflow.com/a/31040918/1702413

but .. UITableview is inherited from UIScrollView

You should not embed UIWebView or UITableView objects in UIScrollView objects https://stackoverflow.com/a/17121582/1702413

Community
  • 1
  • 1
TonyMkenu
  • 7,597
  • 3
  • 27
  • 49