Open bobbyali opened 9 years ago
Ah, I think it's because UIScrollView's basic scrolling functionality will interfere with the drawing. So I need to implement the pinch-to-zoom functionality without using the scrollview...
Nope, tried this and still doesn't work...
Had some good ideas. Tested touches.count
but always returns 1, even with 2 fingers. So can't even detect a pinch gesture... odd...
Set number of touches required. And disable drawing - close the context, render the image to the view, then start the rescaling.
In the PhotoViewController (which shows the photo and lets users draw on it), I would like to enable pinch-to-zoom as well. I read online that this can be done by using a UIScrollView, but when I tried this, it blocked the drawing functionality. Any thoughts?