开发者

Trapping gestures in a UIView

This seems开发者_如何学Python simple enough, but I'm stuck.

I have a View Controller that respondes to some gestures. I add a subview that is like a "heads up" menu; it covers the entire screen, the background color is semi-transparent so faint images of other views below show through.

I don't want the "heads up" subview to let gestures pass to the parent viewcontroller. That is, I don't want the VC to be gesture-sensitive until the "Heads up" subview is dismissed.

Now, the VC acts on gestures even when the "heads up" subview is displayed.

Thanx in advance.


If anyone is interested... I ended up building a custom view that I uses as a "gesture trap" where needed. Not very pretty, but works fine.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜