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.
我在我的应用程序中画了 5 个圆圈,一个在另一个之上。但是当我触摸每个圆圈时我想执行不同的操作,并且只有一次触摸开始,我可以在整个视图中执行触摸.. 谁能帮助我如何做到这一点。
要么处理触摸的坐标以“抓取”一个特定的圆(如果你有原点和半径,你就知道它们的坐标),或者将每个圆放入它自己的视图中,并制作父视图的五个子视图/圆。向下传递视图链直到坐标重叠。