gpt4 book ai didi

iphone - UIVIew touchesBegan :(NSSet*)touches withEvent:(UIEvent*)event always receive only one touch

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:51:24 24 4
gpt4 key购买 nike

触摸计数始终为 1,即使我在屏幕上放置了 1 个以上的手指。但是 event.allTouches 的计数总是正确的?这个方法的意思是这样的吗?

最佳答案

您应该在 View 上启用多点触控。查看 UIView 上的 multipleTouchEnabled 属性;它也可以作为 Interface Builder 中的复选框使用。

关于iphone - UIVIew touchesBegan :(NSSet*)touches withEvent:(UIEvent*)event always receive only one touch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7802028/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com