PTEmptyTableViewIndicator


@interface PTEmptyTableViewIndicator : UIView

A view used to indicate that the contents of a table or collection view are empty. Assigning an instance of this class to the backgroundView property of a UITableView or UICollectionView will display the indicator as a non-scrolling subview. Adding an instance of this class as a subview to a table or collection view will make it scroll with the scroll view.

  • The image view displayed by the indicator.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIImageView *_Nonnull imageView;

    Swift

    var imageView: UIImageView { get }
  • The label displayed by the indicator.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UILabel *_Nonnull label;

    Swift

    var label: UILabel { get }
  • A bitmask describing the alignment of the image and label in this view.

    The default alignment is horizontally and vertically centered.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        PTEmptyTableViewAlignment alignment;

    Swift

    var alignment: PTEmptyTableViewAlignment { get set }