0

私はUILabelビューを持っています.テキストを水平方向に右から左に固定期間で移動したい.私は初心者ですplzヘルプ! ありがとう!

4

1 に答える 1

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];
于 2013-01-10T12:03:27.843 に答える