开发者

How to ask UIImageView if MultipleTouchEnabled is "YES"

开发者 https://www.devze.com 2022-12-28 21:46 出处:网络
I have created a few UIImageViews programmatically,开发者_如何学Python but I have a feeling that even though I setMultipleTouchEnabled to YES during the setup, it is not getting set properly and it\'s

I have created a few UIImageViews programmatically,开发者_如何学Python 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!


multipleTouchEnabled is a property of UIView, so you can check it using the dot syntax for property access by something like:

if (aView.multipleTouchEnabled) { NSLog(@"multipleTouch is Enabled"); }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号