将 UIGestureRecognizer 限制为特殊区域
有没有办法将 UIGestureRecognizer 限制到视图的特殊区域?例如视图的顶部和底部 100px?
提前致谢, 多姆
is there a way to limit a UIGestureRecognizer to a special area of a view? For example the top and bottom 100px of a view?
Thanks in advance,
Dom
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以在主视图上方添加透明视图,并将 UIGestureRecognizers 添加到这些视图中。
You can add transparent views above your primary view and add UIGestureRecognizers to those views.