CGRectIntersectsRect
This function checks to see if two CGRect structures intersect.
if (CGRectIntersectsRect(rect1,rect2))
{
// do something
}