美文网首页
从右向左动画滑动

从右向左动画滑动

作者: seventhboy | 来源:发表于2017-01-06 17:13 被阅读16次
    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];

    相关文章

      网友评论

          本文标题:从右向左动画滑动

          本文链接:https://www.haomeiwen.com/subject/zjkxbttx.html