DTSmartPagingScrollViewDatasource Protocol Reference
Conforms to | NSObject |
Declared in | DTSmartPagingScrollView.h |
Tasks
-
– numberOfPagesInSmartPagingScrollView:
required method -
– smartPagingScrollView:viewForPageAtIndex:
required method -
– smartPagingScrollView:didScrollToPageAtIndex:
Instance Methods
numberOfPagesInSmartPagingScrollView:
The number of pages for the DTSmartPagingScrollView
- (NSUInteger)numberOfPagesInSmartPagingScrollView:(DTSmartPagingScrollView *)smartPagingScrollView
Parameters
- smartPagingScrollView
The scroll view asking
Return Value
The number of pages
Declared In
DTSmartPagingScrollView.h
smartPagingScrollView:didScrollToPageAtIndex:
The number of pages for the DTSmartPagingScrollView
- (void)smartPagingScrollView:(DTSmartPagingScrollView *)smartPagingScrollView didScrollToPageAtIndex:(NSUInteger)index
Parameters
- smartPagingScrollView
The scroll view asking
- index
The index of the page
Declared In
DTSmartPagingScrollView.h
smartPagingScrollView:viewForPageAtIndex:
Method to provide UIViews to be used for the pages
- (UIView *)smartPagingScrollView:(DTSmartPagingScrollView *)smartPagingScrollView viewForPageAtIndex:(NSUInteger)index
Parameters
- smartPagingScrollView
The scroll view asking
- index
The index of the page to provide
Return Value
The view to use for the given page index.
Discussion
The frame of the passed view will be adjusted to the page size of the scroll view
Declared In
DTSmartPagingScrollView.h