SpaceShroomies
SpaceShroomies

Reputation: 1635

Disabling touch detection UIScrollView

I'm making a drawing app and I would like it to accept pictures that are bigger than the screen. For this, I put an image view in a scroll view. However, when the drawing tool is enabled I want to disable the detection of touch events on the scroll view so that I can use the touchesBegan, touchesMoved and touchesEnded methods for drawing. It seems that even if the scroll view has scroll disabled, these methods are not getting called. How can I go about doing this?

Upvotes: 2

Views: 2008

Answers (1)

Tejvansh
Tejvansh

Reputation: 676

Try turning userInteractionEnabled to NO. Maybe it helps.. :)

Upvotes: 3

Related Questions