Disable UITableView horizontal scroll

前端 未结 6 1573
梦毁少年i
梦毁少年i 2021-01-13 13:02

I created a UITableView with a small frame, like (0,0,50,50). I want to disable the horizontal scrolling but keep the vertical scrolling.

I set se

6条回答
  •  日久生厌
    2021-01-13 13:37

    Check if the content inset property of the table view is nonzero. If so reset it to zero.

提交回复
热议问题