Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要制作一个带有滚动视图的应用程序。但我需要一个想法。我需要制作可以水平和垂直滑动的uiscrollview,但是当我向下滑动时,我需要不允许横向滑动。有可能吗?如何?谢谢你。
我认为directionalLockEnabled属性UIScrollView是你要找的。
directionalLockEnabled
UIScrollView