Auto Scrolling UITextView Problem
问题 I am trying to auto scroll my text view and reset it to the top once it's arrived at the end. I use this code: -(void)scrollTextView { CGPoint scrollPoint = stationInfo.contentOffset; scrollPoint = CGPointMake(scrollPoint.x, scrollPoint.y + 2); if (scrollPoint.y == originalPoint.y + 100) { NSLog(@"Reset it"); scrollPoint = CGPointMake(originalPoint.x, originalPoint.y); [stationInfo setContentOffset:scrollPoint animated:YES]; [scroller invalidate]; scroller = nil; scroller = [NSTimer