在这种情况下,我无法让我UIButtons的等工作:UIScrollViews
我有 base UIViewController,它是UIWindow. 在该层之上,我添加了一些其他UIViews内容,我将其称为“中间层视图”。在顶部,我UIView为覆盖对象添加了另一个。
中间层视图定期更改为不同的视图。UIView它使用的来自一个,UIViewController由一个 NIB 文件制作。这是一个例子
if ( mode == eModeShowView1 )
UIViewController* nextController = [[UIViewController alloc] initWithNibName:@"View1"...
else if ( mode == eModeShowView2 )
UIViewController* nextController = [[UIViewController alloc] initWithNibName:@"View2"...
[UIView insertSubview:nextController.view below:m_overlayView];
现在,当我触摸屏幕时,第一响应者显然是被触摸的theOverlayView或 any 。触摸输入在视图链上上升,但似乎完全跳过了中间层视图等。它直接跳到根部。UIResponderOverlayViewUIEventUIRespondersUIViewUIViewController
有谁知道这里发生了什么?
可以通过某种方式创建两个来解决UIEvents吗?一个用于叠加视图,一个用于中间层视图?那可能吗?如果是这样,怎么做?
非常感激任何的帮助。谢谢,丰富