#import <EMInfiniteGridView.h>
Public Member Functions | |
(void) | - reloadData |
(id) | - initWithDataSource:maxItems: |
Static Public Member Functions | |
(id) | + viewWithDataSource:maxItems: |
Protected Attributes | |
EMGridView * | _gridView |
NSInteger | _maxItems |
NSInteger | _pageSize |
NSInteger | _preloadOffset |
BOOL | _reloadingGridView |
id< EMPageableDataSource > | _dataSource |
id< EMInfiniteGridViewDelegate > | _delegate |
EMSearchController * | _controller |
Properties | |
id< EMPageableDataSource > | dataSource |
id< EMInfiniteGridViewDelegate > | delegate |
EMSearchController * | controller |
EMGridView * | gridView |
NSInteger | maxItems |
NSInteger | pageSize |
NSInteger | preloadOffset |
The EMInfiniteGridView contains an EMGridView and is powered off of an EMPageableDataSource.
- (void) reloadData |
Call this to reloadGrid
- (NSInteger) maxItems [read, write, assign] |
Can be used to limit the number of items, even if the datasource contains more than the maxItems
- (NSInteger) pageSize [read, write, assign] |
This sets the number of objects to load at a time. Defaults to 12. However, the first page of records is loaded by object source, so the first page of results is configured elsewhere
- (NSInteger) preloadOffset [read, write, assign] |
The infinite scroller will start loading the next page at when the table view loads the cell at this offset from the last cell. Defaults to 8.