iphone:所有接触的油漆/绘画?

时间:2011-07-06 08:26:04

标签: iphone cocoa-touch core-graphics paint uitouch

如何同时用4个手指画画。我需要用户界面进行互动并回应所有接触。

我见过大多数应用程序,如GLPaint&更多的绘画应用程序只响应1次触摸。

任何人都知道我怎么能用所有的方式画画?

1 个答案:

答案 0 :(得分:1)

我认为您可以使用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.

使用:

multipleTouchEnabled = YES;
delaysTouchesBegan = YES;