UITableview scrolling doubts
<p>i have implemented autoscrolling option for my application,its a reader application,it has chapters,so i put swipe right nd left gesture for next and previous chapters,my need is when the autscroll will come at the last point f the tableview,it automatically changes to next chapter .my code for autoscrolling option is</p>

<pre><code>-(IBAction)_clickautoscroll:(id)sender
{
    if(switchcontrolautoscroll.on){

        if (self.autoscrollTimer == nil) { 

            self.autoscrollTimer = [NSTimer scheduledTimerWithTimeInterval:(55.0/1000.0) 
                                                               target:self 
                                                             selector:@selector(autoscrollTimerFired:)  
                                                             userInfo:nil  
                                                              repeats:YES]; 
        }

    }
    else{
        [switchcontrolautoscroll setOn:NO animated:YES];
        [self.autoscrollTimer invalidate];
        [self.table scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:1 inSection:0] atScrollPosition:UITableViewScrollPositionBottom animated:NO];
    }

}
- (void)autoscrollTimerFired:(NSTimer*)timer { 
    CGPoint scrollPoint = self.table.contentOffset; 
    scrollPoint = CGPointMake(scrollPoint.x, scrollPoint.y + 1); 
    [self.table setContentOffset:scrollPoint animated:NO]; 
} 
</code></pre>

<p>but i need to dynamically change the chapter when the tableview scroll comes to a reticular point,now it is not stoping or changing the chapter it contnuesly scroll to the top.the code for next chapter redirection is</p>

<pre><code>-(void) leftswipedetected:(UISwipeGestureRecognizer*)recognizer {

    delegate.selectedChapter = [NSString stringWithFormat:@"%d",[delegate.selectedChapter intValue] + 1];
    [delegate reloadVerses];
    [self resetReadViewToVerse:1];
}
</code></pre>

<p>how to do this.
thanks in advance.</p>
