A Cocoa Touch class for easily implementing and using paged UIScrollView objects.
This class wraps UIScrollView with some functionality useful when using it with paging. A selector is fired on the delegate when the class determines that the page has been changed.
scrollToPage:(int) animated:(BOOL)Scrolls theUIScrollViewto the requested page and animates on request.setPageCount:(int)Configures theUIScrollViewfor the passed number of pages.
(unsigned int) pageThe current visible page number.(unsigned int) pageCountNumber of pages theUIScrollViewwas configured for.
(void) scrollViewDidChangePage:(int) oldPageNumber:(int)Triggered by the class to signal a page change.
// Creates a UIPagedScrollView with ten pages
UIPagedScrollView *pagedScrollView = [[UIPagedScrollView alloc] init];
[pagedScrollView setPageCount:10];
[pagedScrollView setDelegate:self];
// Create the scrollViewDidChangePage:oldPageNumber: method to catch page changes
Feel free to fork and submit patches, fixes, optimizations, anything.