UIScrollView: paging horizontally, scrolling vertically?

后端 未结 20 1423
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 09:09

How can I force a UIScrollView in which paging and scrolling are on to only move vertically or horizontally at a given moment?

My understanding is that

20条回答
  •  暖寄归人
    2020-11-27 09:37

    If you are using interface builder to design your interface - this could be done quite easily.

    In interface builder simply click on the UIScrollView and select the option (in the inspector) that limits it to only one way scrolling.

提交回复
热议问题