iOS巅峰之跑马灯

来源:互联网 发布:中国网络企业 编辑:程序博客网 时间:2024/04/27 04:29

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

0 0
原创粉丝点击