开发者

Ccuiviewwrapper doesn't allow touch dispatcher to catch touches

When I use CCUIViewWrapper, I notice that m开发者_运维技巧y touch dispatcher doesn't catch any touches, even when the layers that need to have touches are added after the wrappers. Any idea how to remedy this?


It looks like CCUIViewWrapper adds their contained UIViews to the root window as a subview, so essentially the order of things is everything Cocos2d, then any CCUIViewWrappers on top of it. That explains whey the UIViews are capturing my input even when I add children after the wrappers are added.

It sounds like my best option may be to create any functionality that needs to be done on top of these wrappers within an additional wrapper itself and further add that on top.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜