You can use
viewA.clipsToBounds = YES;
With clipsToBounds set to YES, you will see the part of the viewB and viewC that fits within the bounds of the viewA. Otherwise, if clipsToBounds is set to NO, you will see the entire viewB and viewC, even the parts are outside the viewA