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.
drawRect如果我使用的方法画一个圆圈UIView,如何检测它的触摸或点击?我有多个圈子,还必须编辑(更改颜色,...)选定的圈子。或者我必须使用另一种方法。在这种情况下有什么用CoreGraphics吗?OpenGL
drawRect
UIView
CoreGraphics
OpenGL
我找到了答案。我们必须使用CGPath Hit Testing. 检查此链接。
CGPath Hit Testing