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 在屏幕上有两个或多个触摸时滚动。我怎样才能做到这一点?
尝试使用UIGestureRecognizer. 在您的情况下,您必须使用UITapGestureRecognizer, 用 2 个手指和一个水龙头。在表格视图上附加手势。
UIGestureRecognizer
UITapGestureRecognizer