문제

I have been developing collage like application. In which user can add images, they can scale, move and rotate them. Whenever, I am trying to drag an image which is on top but added earlier than the one behind it, it is not receiving the gesture, rather than the one behind it which is added later gets detected and brought into front. How to resolve this issue?

올바른 솔루션이 없습니다

다른 팁

I am Using this to remove the gesture in second view...

 [imageView1 removeGestureRecognizer:GestureInView2];

This are the delegate method of UIGestureRecognizer you can use for your different requirement.

touchesBegan:withEvent:
touchesMoved:withEvent:
touchesEnded:withEvent:

I didn't understand your issue perfectly, But. I think you have to refer for more detail according to your requirement - https://developer.apple.com/library/ios/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/GestureRecognizer_basics/GestureRecognizer_basics.html.

I have done it. We need to change the index of subviews if you want to make them receive touches. Changing zposition alone will not help to make the view to receive touches.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top