UISlider in UITableView not responding to napkin
2 answers
I recently faced the same problem. This happens for me in a static UITableViewController cell created from a storyboard. I found an ugly workaround, but would love to see a better solution for this.
So, I disabled all self.view and self.view.superview UITableViewController gesture recognizers:
- (void)disableGestureRecognisersInView:(UIView*)view {
for ( UIView *subview in view.subviews ) {
for ( UIGestureRecognizer *rec in subview.gestureRecognizers ) {
rec.enabled = NO;
}
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self disableGestureRecognisersInView:self.view];
[self disableGestureRecognisersInView:self.view.superview];
}
And now UISlider is working fine, didn't notice any other issue due to this workaround. But I still don't like it.
0
source to share