SCFetchItemsCell

@interface SCFetchItemsCell : SCCustomCell {
  UIActivityIndicatorView *_activityIndicator;
  BOOL _autoFetchItems;
  BOOL _autoHide;
}

SCFetchItemsCell is a special cell that is automatically displayed by an SCArrayOfItemsSection when more section items need to be fetched. This is typically the case when the section’s dataFetchOptions property has specified a batchSize for the fetched items.

Sample use: myArrayOfObjectsSection.dataFetchOptions.batchSize = 10; myArrayOfObjectsSection.fetchItemsCell.textLabel.text = @“Load next batch”;

See also: SCArrayOfItemsSection

Note

SCExpandCollapseCell is always displayed at the bottom of the section.

Configuration

  • When set to TRUE, the cell automatically starts fetching the items when it scrolls into view. When set to FALSE, the cell must be tapped in order to fetch the items. Default: FALSE.

    Declaration

    Objective-C

    @property (nonatomic) BOOL autoFetchItems;
  • When set to TRUE, the cell automatically disappears as soon as there are no more items to fetch. Default: TRUE.

    Declaration

    Objective-C

    @property (nonatomic) BOOL autoHide;

Internal Methods (should only be used by the framework or when subclassing)

  • Method called internally by the framework to fetch the section’s items.

    Declaration

    Objective-C

    - (void)fetchItems;
  • Method called internally by the framework once the items have been fetched.

    Declaration

    Objective-C

    - (void)didFetchItems;
  • Method called internally by the framework to start the cell’s activity indicator.

    Declaration

    Objective-C

    - (void)startActivityIndicator;
  • Method called internally by the framework to stop the cell’s activity indicator.

    Declaration

    Objective-C

    - (void)stopActivityIndicator;