Home Ask Login Register

Developers Planet

Your answer is one click away!

Fiza Choudhary February 2016

My uitableview cells using in anywhere in application are only selectable on long press ios 9.2, I am not using any gestures

I am using custom xib cells in my application but I am facing a problem regarding all tableviews, UITableViewCell is not getting selected on single tap, I have to long press the cell for selecting it. I am using a custom xib cell and I have not used any gesture recognizer in my classes. I am facing this problem in every table view even in NIDropdownList’s Tableview Which is an open source library I have previously used many time..


Fiza Choudhary February 2016

I was using CDSideMenu and TSMessage library which contains UIGestureRecognizers in it.

UISwipeGestureRecognizer *gestureRec = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(fadeMeOut)]; [gestureRec setDirection:(self.messagePosition ==TSMessageNotificationPositionTop ? UISwipeGestureRecognizerDirectionUp : UISwipeGestureRecognizerDirectionDown)];

[self addGestureRecognizer:gestureRec]; [gestureRec setCancelsTouchesInView:NO];

I have set All the gestures to not cancel other touches in view and its solved the problem [gestureRec setCancelsTouchesInView:NO] :)

Post Status

Asked in February 2016
Viewed 3,377 times
Voted 6
Answered 1 times


Leave an answer

Quote of the day: live life