学习使用

  • vertical [ˈvə:tikəl] 垂直
  • horizontal scroll 英 [ˌhɔriˈzɔntəl] 水平滚动
  • invalidate 英 [ɪnˈvælɪˌdeɪt] 无效

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];

你可能感兴趣的:(学习使用)