Inherits from UIScrollView
Conforms to UIScrollViewDelegate
Declared in DTSmartPagingScrollView.h

Overview

A scroll view that automatically manages a set of pages

Properties

currentPageIndex

The current page index visible on the receiver

@property (nonatomic, assign) NSUInteger currentPageIndex

Declared In

DTSmartPagingScrollView.h

pageDatasource

The page data source for the receiver

@property (nonatomic, DT_WEAK_PROPERTY) IBOutlet id<DTSmartPagingScrollViewDatasource> pageDatasource

Declared In

DTSmartPagingScrollView.h

Instance Methods

rangeOfVisiblePages

The range of indexes of the currently visible pages

- (NSRange)rangeOfVisiblePages

Declared In

DTSmartPagingScrollView.h

reloadData

Reloads the pages from the datasource

- (void)reloadData

Declared In

DTSmartPagingScrollView.h

scrollToPage:animated:

Scroll the receiver to the given page index

- (void)scrollToPage:(NSInteger)page animated:(BOOL)animated

Parameters

page

The index of the page to move to

animated

Whether the move should be animated

Declared In

DTSmartPagingScrollView.h

viewForIndex:

Get a view for a specified index

- (UIView *)viewForIndex:(NSUInteger)index

Parameters

index

The index of the view to retrieve

Declared In

DTSmartPagingScrollView.h