Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我添加到我的 viewControllers 视图的自定义视图中,我需要处理触摸,但只在它的某些区域而不是在任何地方。
我该怎么做?
您可以覆盖pointInside:withEvent:以使视图忽略不在您想要的区域中的触摸。
pointInside:withEvent: