How to always makes a UIScrollView scrollable?

前端 未结 2 600
梦如初夏
梦如初夏 2021-02-05 02:37

I have a UIScrollView. The scrollview.contentSize is set to the height of all subviews in the UIScrollView. When the height of the c

2条回答
  •  情话喂你
    2021-02-05 02:42

    In swift:

    scrollView.alwaysBounceVertical = true
    scrollView.alwaysBounceHorizontal = true
    

提交回复
热议问题