テキストビューの自動スクロールが実装されています。しかし、無限のテキストビューを実装できません。テキストビューに同じテキストを追加して無限にスクロールしたい.....
無限スクロールのコード.......
-(void)viewWillAppear:(BOOL)animated{
if (scrollingTimer == nil) {
scrollingTimer = [NSTimer scheduledTimerWithTimeInterval:(0.06)
target:self
selector:@selector(autoscrollTimerFired)
userInfo:nil
repeats:YES];
}
self.textView.contentOffset=CGPointMake(0, -(self.textView.frame.size.height));
}
- (void) autoscrollTimerFired{
CGPoint scrollPoint = self.textView.contentOffset;
scrollPoint = CGPointMake(scrollPoint.x, scrollPoint.y + 1);
[self.textView setContentOffset:scrollPoint animated:NO];
}