iOS巅峰之跑马灯

//        self.labelShow = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 30)];
//        [v.vc addSubview:self.labelShow];
//        self.labelShow.textColor = [UIColor whiteColor];
//   
//        // labelShow.backgroundColor = [UIColor redColor];
//        self.labelShow.text = @"upuofsidpouiuyufdslwrwerwerewrwerwerwerwrwerwerwrwfhsodfhsildfhsaldkfsafopiasudfiopasudfsfsadfasfasfdfiopsd";
//   
//        [self.labelShow sizeToFit];
//        CGRect frame = self.labelShow.frame;
//        frame.origin.x = 320;
//        self.labelShow.frame = frame;
//   
//        [UIView beginAnimations:@"testAnimation" context:NULL];
//        [UIView setAnimationDuration:8.8f];
//        [UIView setAnimationCurve:UIViewAnimationCurveLinear];
//        [UIView setAnimationDelegate:self];
//        [UIView setAnimationRepeatAutoreverses:NO];
//        [UIView setAnimationRepeatCount:999999];
//   
//        frame = self.labelShow.frame;
//        frame.origin.x = -frame.size.width;
//        self.labelShow.frame = frame;
//        [UIView commitAnimations];

你可能感兴趣的:(iOS,UIView动画,跑马灯,iOS,iOS,UIView动画,跑马灯)