开发者

iphone: Paint/Draw with All touches?

How can I paint with with 4 fingers simultaneously. I need UI to interact and respond to a开发者_开发知识库ll 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 ?


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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜