好的,这是代码:
[lblMessage setText: txtEnter.text];
[lblMessage sizeToFit];
scrollingTextView.contentSize = lblMessage.frame.size;
float width = (lblMessage.frame.size.width) + (480);
[UIView beginAnimations:@"pan" context:nil];
[UIView setAnimationDuration:durationValue];
[UIView setAnimationRepeatCount:5];
scrollingTextView.contentOffset = CGPointMake(width,0);
[UIView commitAnimations];
//The scrolling text view is rotated.
scrollingTextView.transform = CGAffineTransformMakeRotation (3.14/2);
[self.navigationController setNavigationBarHidden:YES];
btnChange.transform = CGAffineTransformMakeRotation (3.14/2);
我让用户输入一些文本,按下按钮,然后用文本替换标签,在页面上的滚动视图中旋转 90 度。
在一定数量的字符之后,例如说 20.. 动画将无法加载。我可以回去,直到动画运行。
关于我哪里出错的任何想法,或者存储文本等的更好方法等?