我正在使用 UIPinchGestureRecognizer 来检测捏合手势,例如:
- (void) initPinchRecon {
UIPinchGestureRecognizer *pinchRecognizer = [[[UIPinchGestureRecognizer alloc]
initWithTarget:self
action:@selector(Perform_Pinch:)] autorelease];
[self addGestureRecognizer:pinchRecognizer];
[pinchRecognizer setScale:20.0f];
}
- (void) Perform_Pinch:(UIPinchGestureRecognizer*)sender{
NSLog(@"PINCH");
}
它可以很好地检测简单的捏合手势:可以确定(或自己定义)捏合手势的角度或方向?例如,区分水平和垂直捏合手势?