Apple's documentation describes UIViewAnimationOptionLayoutSubviews as:
Lay out the subitems during the commit so that they are animated along with their parent.
Here is an example of the code that interests me. I want to animate -layoutSubviews of detailView ; however, they don't seem to match the detailView , so I'm not sure what effect it really has.
void (^animation) () = ^ { [self.detailView setNeedsLayout]; [self.detailView layoutIfNeeded]; }; [UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationOptionLayoutSubviews animations:^{ animation(); } completion:nil];
ios core-animation
jonsibley
source share