0
我有一个覆盖视图(覆盖整个屏幕),我可以接收触摸但它不会将它们传递给响应者链。UIViewController没有传递给其他视图
我添加子视图这样的:
UIWindow *mainWindow = [[UIApplication sharedApplication] keyWindow];
[mainWindow insertSubview:self.view aboveSubview:mainWindow];
这似乎并不重要,如果我使用addSubview或insertSubview。
我的touchesBegan样子:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
//do some stuff here..
[super touchesBegan:touches withEvent:event];
}
这似乎并不重要,如果我使用SUPER或self.nextResponder的各种其他的组合等。
最后,我需要要覆盖整个屏幕,我需要检测触摸,然后将它们传递给它们下面的views/viewControllers。
谢谢!