开发者

How to ask UIImageView if MultipleTouchEnabled is "YES"

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜