How to make UICollectionView auto scroll using NSTimer?
<p>How to scroll UIcollectionView automatically in Horizontal position using NSTimer</p>

<p>I'm working on my project source below:</p>

<pre><code>- (void)viewDidLoad {
    [super viewDidLoad];

    self.endPoint = CGPointMake(0, self.collectionView.frame.size.width);
    self.scrollingPoint = CGPointMake(0, 0);
    self.scrollingTimer = [NSTimer scheduledTimerWithTimeInterval:0.015 target:self selector:@selector(onTimer) userInfo:nil repeats:YES];

}

- (void)onTimer {
     self.collectionView.contentOffset = self.scrollingPoint;
    if (CGPointEqualToPoint(self.scrollingPoint, self.endPoint)) {
        [self.scrollingTimer invalidate];
    }
    self.scrollingPoint = CGPointMake(self.scrollingPoint.x+1, 0);
}
</code></pre>

<p>Tried with the above code, but is not working for me.</p>