Answer the question
In order to leave comments, you need to log in
How to define, turn off or rewrite the gesture recognizer responsible for moving cells in the TableView?
The second day I'm trying to solve the following problems:
1. Turning off the gesture recognizer responsible for moving cells in the TableView
2. Making changes to the gesture recognizer responsible for moving cells in the TableView
My application contains three custom classes:
-NDAViewController
-NDATableView(my custom table view)
- NDACell(my custom cell for table view)
I put the NDATableView instance in edit mode (the table is always in this mode):
- (void)viewDidLoad{
[super viewDidLoad];
[myTableView setEditing:YES animated:YES];}
-(void) helper:(UIView*) view{
for (UIView* sub in view.subviews) {
NSLog(@"%@.subview=%@",NSStringFromClass ([view class]),NSStringFromClass ([sub class]));
for(UIGestureRecognizer* gestRec in sub.gestureRecognizers)
{
NSLog(@"view=%@ gesture recognizer=%@",NSStringFromClass ([sub class]),NSStringFromClass ([gestRec class]));
}
[self helper];
}
}
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
return NO;};
Answer the question
In order to leave comments, you need to log in
maybe it's not the gesture recognizer, but the implementation based on touchesBegin / touchesEnd?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question