配列に複数の画像があり、すべての画像が自動的にスクロールし、画像をクリックすると他のビューに移動してその詳細を表示する必要があります。配列の 0 から最後までスクロールする画像を完成させた後、最初の画像、つまり 0 を再びロードする必要があります。
このコードを使用しています
[NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(onTimer) userInfo:nil repeats:YES];
- (void) onTimer {
// Updates the variable h, adding 100 (put your own value here!)
h += 100;
//This makes the scrollView scroll to the desired position
yourScrollView.contentOffset = CGPointMake(0, h);
}