UITableView and UIScrollView coexist, scroll bar scrolling problem

UITableView and UIScrollView coexist, scroll bar scrolling problem. A UITableView is placed in UIScrollView, and the two scroll bars will conflict. My solution is to disable scrollView Enabled in UITableView. Only make UIScrollView scrollable, and then dynamically calculate the height of the cell in the UITableView * the number of rows. This is the height of the UITableView on the line. UIScrollView also dynamically calculates settings

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326848951&siteId=291194637