Get intersected Rect!
I found the following function CGRectIntersectsRect (frame1,frame2) which returns true if they are intersected. Is there an开发者_运维问答other function that returns the intersected Rect?
CGRectIntersection Returns the intersection of two rectangles.
CGRect CGRectIntersection (
CGRect r1,
CGRect r2
);
精彩评论