版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Emperor_huanzi/article/details/79915780
** //设置动画的过渡形式
UIViewAnimationTransition transition = flag?UIViewAnimationTransitionFlipFromLeft:UIViewAnimationTransitionFlipFromRight;
[UIView animateWithDuration:.35 animations:^{
//设置视图view的过渡效果, transition指定过渡类型, cache设置YES代表使用视图缓存,性能较好
[UIView setAnimationTransition:transition forView:self.view cache:YES];
}];**