2016-02-20 69 views
1

我嘗試了很多方法,但沒有得到解決一個UITableView是一個UIScrollView包埋,滑動刪除是不行的

就我而言,我的看法層次:

UIView 
    UIScrollView 
    LeftContainer + RightContainer 
       (in RihgtContainer) ViewContainer 
             TableView 

enter image description here

我試過這些:

子類化Scrollview和

- (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; 

回答

相關問題