Search code examples
iphonecocoa-touchcore-graphicspaintuitouch

iphone: Paint/Draw with All touches?


How can I paint with with 4 fingers simultaneously. I need UI to interact and respond to all touches.

I have seen most of the Apps like GLPaint & many more painting apps which only respond to 1 touch.

Anyone have idea how can I paint with all touches ?


Solution

  • I think that you can use UIPanGestureRecognizer

    UIPanGestureRecognizer is a concrete subclass of UIGestureRecognizer that looks for panning (dragging) gestures.The user must be pressing one or more fingers on a view while they pan it.
    

    Use :

    multipleTouchEnabled = YES;
    delaysTouchesBegan = YES;