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 つの円を描きました。しかし、各円に触れたときにさまざまな操作を実行したいのですが、ビュー全体でタッチを実行できるタッチが1つしかありません。
タッチの座標を処理して特定の円を「つかむ」(原点と半径があれば座標がわかります) か、各円を独自のビューに入れ、親ビューの 5 つのサブビュー/円を作成します。座標が重なるまでビュー チェーンにタッチを渡します。