Question: ![enter image description here](https://i.stack.imgur.com/Dl6v9.png)

As show in Picture above UIView A & UIView C are Added on UIView B. for B ClipToBounds is YES so the Red area is not visible.

Is it possible to get Visible rectangle of A & C ( shown with Lines ) 

I need show Rectangle in visible area when I touches e.g View A. thats it.

![enter image description here](https://i.stack.imgur.com/wllxD.png)

Answer: 
Yes you can with this function:

```
CGRect CGRectIntersection (
   CGRect r1,
   CGRect r2
);

```

If you tell exactly what you want to do maybe are better ways, for example i needed something similar and instead cropping manually i just captured the UIView B content as an image.
on `touchesEnded:` method you can find it like bellow..

```
  -(void) touchesEnded:(NSSet *) touches {
    if(CGRectIntersectsRect([ViewA frame], [ViewB frame]) {
      //Do something here
    }
  }

```

Read More Information about RectInterSect From [This Link](https://developer.apple.com/library/mac/#documentation/graphicsimaging/reference/CGGeometry/Reference/reference.html#//apple_ref/c/func/CGRectContainsPoint)

i hope its helpful to you...