IOS - CALayer and Gesture/Swipe Recognizer?

Up vote 1 down vote favorite share g+ share fb share tw.

I added a layer to my view to create gradient background color, but I need to use UISwipeGestureRecognizer in my view. The problem is that now, with the layer, the swipe recognizer doesn't work! How can I do?

Can I add a swipe recognizer to a layer? Thanks ios uiview calayer uigesturerecognizer link|improve this question asked Nov 15 '11 at 22:37Andrea Lufino266314 86% accept rate.

(by aegzorz) You could try adding gesturerecognizers to your UIView and then call (CALayer *)hitTest:(CGPoint)thePoint on your view's layer to find which layer you hit, eg; CALayer* layerThatWasTapped = gestureView. Layer hitTest:gestureRecognizer locationInView:gestureView.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions