CGContextRef context = UIGraphicsGetCurrentContext(); [UIView beginAnimations:nil context:context]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:1.0]; // Apply the animation to the backdrop [UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:myView cache:YES]; // Exchange the two foreground views [myView exchangeSubviewAtIndex:0 withSubviewAtIndex:1]; [UIView commitAnimations];
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/5234.html