UITableView inside UIScrollView not receiving first tap after scrollling

前端 未结 14 1844
北海茫月
北海茫月 2020-11-29 04:31

Brief

I am having an issue with a UITableView inside a UIScrollView. When I scroll the external scrollView, the table<

14条回答
  •  广开言路
    2020-11-29 05:22

    I have the same problem with nested UITableView and have found a work-around for this:

    innerTableView.scrollEnabled = YES;
    innerTableView.alwaysBounceVertical = NO;
    

    You'll need to set the height of the inner table view to match with the total height of its cells so that it'll not scroll when user scrolling the outer view.

    Hope this helps.

提交回复
热议问题