我有UILabel视图,我希望将文本水平移动到左侧固定持续时间。我是一个新手帮助!谢谢!
答案 0 :(得分:0)
这样的事应该可以正常工作:
CGPoint center = scrollLabel.center;
[UILabel beginAnimations:@"scroll" context:nil];
[UILabel setAnimationDuration:5.0]; // the time the animation should take
center.x -= 500; // whatever distance you'd like
[UILabel commitAnimations];