didSelectRowAtIndexPath: not being called

前端 未结 14 2229
轻奢々
轻奢々 2020-11-29 18:57

I have a UITableView as a subview of my UIScrollVIew, which is the main view controlled by my MainViewController.

In MainView

14条回答
  •  粉色の甜心
    2020-11-29 19:24

    Cancel the other views touches except required one.

    - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gesture shouldReceiveTouch:(UITouch *)touch {
        if (touch.view == your view) {
            return YES;
        }
        return NO;
    }
    

提交回复
热议问题