开发者

Upper UIView blocks UIGestureRecognizer to lower UIViews

I have a UIView subclass that has several images in an L shape, and so it doesn't cover the entire screen. On my screen I have two of these views layered on top of each other开发者_JAVA百科, and each has a UIGestureRecognizer on them. The top view accepts gestures normally, however if I grab in the transparent space in the "top right" of the L, with the bottom one visible underneath, the bottom one does not recieve the gesture. Indeed the top one does, but rejects it as I've used gestureRecognizer:shouldReceiveTouch: to reject that touch.

Both gestureRecognizer:shouldRecognizeSimultaneouslyWithGestureRecognizer: and gestureRecognizerShouldBegin: both return YES.

Upper UIView blocks UIGestureRecognizer to lower UIViews

The blue view scales, rotates and pans normally, but the red on can only be selected in the far top and far right, where there is no overlay with the blue view

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜