Disable vertical scroll in UIScrollView Swift

前端 未结 8 2118
情深已故
情深已故 2021-02-15 00:37

(Don\'t mark this question as duplicated. I read a lot of questions but I don\'t find the answer to my issue.)

My issue is the following: I have a UIScrollView

8条回答
  •  误落风尘
    2021-02-15 01:06

    You can simply do this. Swift 4

    self.scrollView.contentSize.height = 1.0 // disable vertical scroll
    

提交回复
热议问题