Так я работаю над этим, и я, наконец, нашел решение :)
[UIView animateWithDuration:0.4 delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:
^{
rect = placeHolderView.frame;
rect.origin.x += 100;
rect.origin.y += 70;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
placeHolderView.frame = rect;
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:placeHolderView cache:YES];
[UIView setAnimationDuration:0.5];
CGAffineTransform transform = CGAffineTransformMakeScale(3.0, 3.0);
placeHolderView.transform = transform;
[UIView commitAnimations];
self.view.layer.cornerRadius = 5.0f;
self.view.clipsToBounds = YES;
} completion:^(BOOL finished) {
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView transitionWithView:placeHolderView duration:0.8 options:UIViewAnimationOptionTransitionFlipFromRight|UIViewAnimationOptionBeginFromCurrentState animations:
^{
CGAffineTransform transform = CGAffineTransformMakeScale(10.0, 10.0);
placeHolderView.transform = transform;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.purchaseItemView cache:YES];
[placeHolderView setAlpha:0.0];
[self.myMainView setAlpha:1.0];
[UIView setAnimationDuration:0.8];
[UIView commitAnimations];
} completion:nil];
}
];
placeholderView является мнение о том, будет масштабироваться от небольшого 16x6 изображения. В то время как myMainView - это представление, показанное после того, как переход с флип + масштаб закончился. Надеюсь, что это поможет любому, кто хочет реализовать это :)