I have an UIScrollView with a PageControl, that show some pictures inside the view.
I’d like to create an animation, like a banner effect that changes the image after X seconds automatically.
- Can do this with UIScrollView or should I use another way?
EDIT: @selector
- (void) changePage:(UIPageControl *)sender
{
if ([pageControl currentPage] < 3) {
[pageControl setCurrentPage:[pageControl currentPage] + 1];
} else{
[pageControl setCurrentPage:0];
}
}
UIScrollView is fine.
You have to set pagingEnabled on the scrollView and after a certain time, change the page selected on the scrollView.