public static int CGRectEqualToRect(CGRect rect1, CGRect rect2) { return Equals(rect1, rect2) ? 1 : 0; }