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];
网友评论