学习使用

2017-03-17  本文已影响3人  Steven054

UIView动画

      __weak typeof(self) weakSelf = self;
    [self sizeToFit];
    [UIView beginAnimations:@"HorizontalScrollLabel" context:NULL];
    [UIView setAnimationDuration:15.0f];
    [UIView setAnimationCurve:UIViewAnimationCurveLinear];
    [UIView setAnimationRepeatAutoreverses:NO];
    [UIView setAnimationRepeatCount:MAXFLOAT];
    CGRect frame = weakSelf.frame;
    frame.origin.x = -frame.size.width;
    weakSelf.frame = frame;
    [UIView commitAnimations];
上一篇 下一篇

猜你喜欢

热点阅读