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
Yo can use UIView
Animation
Blocks for that
[UIView animateWithDuration:5.0f delay:0.0f options:UIViewAnimationOptionTransitionNone animations:^{
yourLabel.center = CGPointMake(0, yourLabel.center.y);
} completion:NULL ];
And if you want something like autoreverses
[UIView animateWithDuration:5.0f delay:0.0f options:UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse | UIViewAnimationOptionBeginFromCurrentState animations:^{
yourLabel.center = CGPointMake(0, yourLabel.center.y);
} completion:NULL ];