开发者

problem in quartz 2D drawing touches began

开发者 https://www.devze.com 2022-12-22 03:22 出处:网络
I have drawn 5 circles in in my app one above the other . But i want to perform different operations when i touch each circle and there is only one touches began where I can perform touches for t开发者

I have drawn 5 circles in in my app one above the other . But i want to perform different operations when i touch each circle and there is only one touches began where I can perform touches for t开发者_Python百科he entire view.. can anyone help me how to do that.


Either process the coordinates of the touch to "grab" a specific circle (you know their coordinates if you have the origins and radii), or put each circle into its own view, and make five subviews/circles of a parent view. Pass the touch down the view chain until the coordinates overlap.

0

精彩评论

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