The iOS framework that grows only as fast as its documentation
<NIPagingScrollViewDataSource> Protocol Reference

Overview

The data source for NIPagingScrollView.

Inheritance diagram for <NIPagingScrollViewDataSource>:
<NIPhotoAlbumScrollViewDataSource>

Tasks

[NIPagingScrollViewDataSource] Fetching Required Album Information
(NSInteger) - numberOfPagesInPagingScrollView:
 
(UIView
< NIPagingScrollViewPage > *) 
- pagingScrollView:pageViewForIndex:
 

Method Documentation

numberOfPagesInPagingScrollView:

Fetches the total number of pages in the scroll view.

- (NSInteger)numberOfPagesInPagingScrollView:(NIPagingScrollView *)pagingScrollView;
Discussion

The value returned in this method will be cached by the scroll view until reloadData is called again.

pagingScrollView:pageViewForIndex:

Fetches a page that will be displayed at the given page index.

- (UIView<NIPagingScrollViewPage>*)pagingScrollView:(NIPagingScrollView *)pagingScrollView pageViewForIndex:(NSInteger)pageIndex;
Discussion

You should always try to reuse pages by calling dequeueReusablePageWithIdentifier: on the paging scroll view before allocating a new page.