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.
我继承了 UIImageview 并覆盖了touchesBegan、touchesMoved、touchesEnded方法 ,我用手指画线,它可以在 iPhone 上工作(侧面没有滚动)。问题是当我在 iPad 上开始时,默认情况下总是在一边滚动,我认为滚动正在窃取触摸事件。如何解决这个问题?
[yourScrollView setCanCancelContentTouches:NO]