gpt4 book ai didi

iphone - 拦截所有触摸事件

转载 作者:搜寻专家 更新时间:2023-10-30 20:27:38 24 4
gpt4 key购买 nike

<分区>

我在基于导航的应用程序中有一个 UIViewController。我希望 View Controller 接收来自子对象的所有触摸事件,例如 tableview 和导航栏。或者,任何其他能够拦截所有触摸事件的技术。

现在,以下内容永远不会在 View Controller 内部执行:

 - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event

我需要检查触摸事件中的类级别标志,无论触摸来自何处(在任何 View 的子级中)。

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com