Try this.
[your table-name scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:pageval inSection:0] atScrollPosition:0 animated:YES];
In indexPathForRow
you can pass your row number and increment it till the end of row.
I think that will do the trick.
Hope this will help
**
As you are using textview you can try this
**
count=txtvw.frame.size.height; //integer counter initialized as textview's height
//call "scrolltextview" method at regular time interval. (here it is calling method in 0.3 second timespan)
self.timer = [NSTimer scheduledTimerWithTimeInterval:.3f
target:self
selector:@selector(scrolltextview)
userInfo:nil
repeats:YES];
-(void)scrolltextview
{
//iterate "count" every time the method is called by the lineheight of textview's font.
count=count+ txtvw.font.lineHeight;
if(count<=txtvw.text.length)
{
NSRange range = NSMakeRange(count - 1, 1);
[txtvw scrollRangeToVisible:range]; // scroll with range
}
else {
[timer invalidate]; // if count match with the condition than invalidate the timer so method not called now.
}
}
I use this with NSTimer
object. Hope this will help.