How to move text from right to left in iOS programmatically

后端 未结 9 1777
野趣味
野趣味 2020-12-28 11:33

I want to show some text in my app like moving text (Scrolling with animation from right to left). How to do this programmatically?

I took UIViewcontroller

9条回答
  •  失恋的感觉
    2020-12-28 11:50

    you could try this one

    [UIView animateWithDuration:15.0f animations:^{
            Moving_Cloud.frame = CGRectMake(320.0f, 30.0f, Moving_Cloud.frame.size.width, Moving_Cloud.frame.size.height);
        }
                         completion:^(BOOL finished){
                         }];
    

    here " Moving_Cloud " is my image view so likewise you can try for your label.

提交回复
热议问题