2010-08-12 58 views

回答

8

你可以嘗試添加gesturerecognizers您UIView,然後調用

- (CALayer *)hitTest:(CGPoint)thePoint 

視圖的層上找到你打哪一層,例如;

CALayer* layerThatWasTapped = [gestureView.layer hitTest:[gestureRecognizer locationInView:gestureView]];