如何询问 UIImageView MultipleTouchEnabled 是否为“YES”
我以编程方式创建了一些 UIImageView,但我有一种感觉,即使我在设置过程中将MultipleTouchEnabled 设置为 YES,它也没有正确设置,并且会导致多点触摸问题。
我的问题是,在 TouchesBegan 中,我如何询问被触摸的 UIImageView 是否具有 MultipleTouchEnabled ?
我对此还很陌生,所以我在代码和学习中确实遇到了困难(当然,在你的帮助下)。
提前谢谢您了!
I have created a few UIImageViews programmatically, but I have a feeling that even though I setMultipleTouchEnabled to YES during the setup, it is not getting set properly and it's leading to multi-touch issues.
My question is, within touchesBegan how do I go about asking the UIImageView that was touched if it has MultipleTouchEnabled or not?
I am fairly new to this so I'm really stumbling through code and learning as I go (with your help of course).
Thank you ahead of time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
multipleTouchEnabled
是UIView
的一个属性,因此您可以使用点语法进行属性访问检查,如下所示:multipleTouchEnabled
is a property ofUIView
, so you can check it using the dot syntax for property access by something like: