- (void)viewDidLoad {
[super viewDidLoad];
UILabel * textView = [[UILabel alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 30)];
textView.text = @"八十多分卡是经典款拉屎的法师打发";
[self.view addSubview:textView];
[UIView animateWithDuration:3 delay:2 options:UIViewAnimationOptionRepeat animations:^{
//怎样的动画
textView.frame = CGRectMake(-self.view.frame.size.width, 100,self.view.frame.size.width , 30);
} completion:^(BOOL finished) {
NSLog(@"动画结束");
}];
}
动画
最新推荐文章于 2022-07-12 16:38:33 发布