ios - UIView subview clips during UIView transition animation -
i have created uiview subclass contains uiimageview subview. uiimageview subview may typically lie outside bounds of superview (my uiview subclass). not problem, no clipping occurs subview not 'clipstobounds'. until subview performs transition animation.
[uiview transitionwithview:self duration:0.7 options:uiviewanimationoptiontransitionflipfromleft | uiviewanimationoptionallowanimatedcontent animations:^{ self.bodyview.transform = cgaffinetransformmakescale(-1.0, 1.0); } completion:^(bool fin){ }];
in example 'bodyview' uiimageview subview of uiview subclass. during transition bodyview clips. have tried setting 'maskstobounds' property of superview's layer 'no' has not solved problem.
my workaround @ present superview larger subview , not allow subview's frame exist outside superview's bounds not practical in application.
try imgview.contentmode=uiviewcontentmodescaleaspectfit;