阅读背景:

如何忽略触摸事件并将它们传递给另一个子视图的UIControl对象?

来源:互联网 

I have a custom UIViewController whose UIView takes up a corner of the screen, but most of it is transparent except for the parts of it that have some buttons and stuff on it. Due to the layout of the objects on that view, the view's frame can cover up some buttons beneath it. I want to be able to ignore any touches on that view if they aren't touching anything important on it, but I seem to only be able to pass along actual touch events (touchesEnded/nextResponder stuff). If I have a UIButton or something like that which doesnt use touchesEnded, how do I pass the touch event along to that? I have a custom UIViewController whose UIView t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: