How to Cancel Scrolling in UIScrollView

前端 未结 6 1969
情话喂你
情话喂你 2020-12-28 18:14

I use UIScrollView to make large-sized (larger than 320px) UI on iPhone.

I made an instance of UIScrollView and added some subviews on it. The problem is that I want

6条回答
  •  被撕碎了的回忆
    2020-12-28 18:28

    UIScrollView has a scrollEnabled property that allows you to disable scrolling programatically. It also has a delegate (UIScrollViewDelegate) that allows you to see events such as scrolling starting/ending. Seems that you should be able to cook something up with those options combined in some way.

提交回复
热议问题