Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在屏幕上找到触摸的区域/空间(例如,如果您将拇指放在屏幕上,它需要返回拇指覆盖的框架区域)?
iOS 8.0 中的新特性是majorRadius属性,UITouch它应该为您提供所需的数据:
UITouch
使用此属性中的值来确定硬件报告的触摸大小。此值是大小的近似值,可以根据 majorRadiusTolerance 属性中指定的量而变化。