Is there a method that will check if a point intersects a rectangle?
So, Apple includes a CGRectIntersectsRect
开发者_运维知识库method which checks if two rectangles are intersecting each other, but do they have a method that I can use the checks if a CGPoint intersects a CGRect? Or do I just have to implement that myself?
There is one: CGRectContainsPoint
.
精彩评论