Passing mode
view1.clipsToBounds = YES;//Cutting View1 view
view1.autoresizesSubviews = YES;//Sub -view automatically adapts to the size, set in the father’s view
view2.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleleftMargin; // The adaptation method of the sub -view in the father’s view, set in the sub -view
imageView.contentMode = UIViewContentModeScaleAspectFill; // The picture mode in the view
mobile
[self.view insertSubview:view3 atIndex:1];
[self.view sendSubviewToBack:view2];
[self.view bringSubviewToFront:view1];
[self.view exchangeSubviewAtIndex:0 withSubviewAtIndex:2];
[view1 isDescendantOfView:self.view]