In a long animated-moving string from right to left, I want to get actually visible substring. Is it possible to get it in an animation process?
I must keep two features of the banner:
- smooth moving
- get substring (few characters) in some point on the screen
It is long string in one line.
I use this animation:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:10.0];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
...
[UIView commitAnimations];
I tried with:
CGPoint currentPosition = [[self.autoScrollText.layer presentationLayer] position];
but unsuccessfully...