MMMTableView

Objective-C

@interface MMMTableView : UITableView <MMMPreferredSizeChanges>

Swift

class MMMTableView : UITableView, MMMPreferredSizeChanges

A table view supporting top and bottom shadows.

  • Declaration

    Objective-C

    - (nonnull id)initWithSettings:(nonnull MMMScrollViewShadowsSettings *)settings
                             style:(UITableViewStyle)style;

    Swift

    init(settings: MMMScrollViewShadowsSettings, style: UITableView.Style)
  • Note that UITableViewStylePlain is used.

    Declaration

    Objective-C

    - (nonnull id)initWithSettings:(nonnull MMMScrollViewShadowsSettings *)settings;

    Swift

    init(settings: MMMScrollViewShadowsSettings)
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • When enabled, then reloadData is automatically called whenever any of the cells report potential size changes via mmm_setPreferredSizeCouldChange. See MMMPreferredSizeChanges for more info.

    This feature is disabled by default for compatibility with the current code.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldHandlePotentialCellSizeChanges;

    Swift

    var shouldHandlePotentialCellSizeChanges: Bool { get set }