質問

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