从右向左动画滑动

CGContextRef contentext = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:contentext];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
[UIView setAnimationDuration:0.4];
self.transform = CGAffineTransformMakeTranslation(-Scale(375), 0);
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(animationFinished)];
[UIView commitAnimations];

你可能感兴趣的:(从右向左动画滑动)