【发布时间】:2012-05-04 08:01:02
【问题描述】:
我用下面的代码画了这么多弧线:
CGContextAddArc(context,
e.x,
e.y,
Distance/2,
M_PI+angle1,
angle1,
aClock);
CGContextStrokePath(context)
现在我想要当我触摸任何拱门时,我想检测到哪个拱门被触摸了
我该怎么做?
【问题讨论】:
-
使用旧的触摸方法(touchbegan、touchmoved、toucheended)检测屏幕上发生触摸的位置,然后查找附近的位置。
标签: iphone objective-c cgcontext