DTTableViewManageable

public protocol DTTableViewManageable : AnyObject

Adopting this protocol will automatically inject manager property to your object, that lazily instantiates DTTableViewManager object. Target is not required to be UITableViewController, and can be a regular UIViewController with UITableView, or any other view, that contains UITableView.

  • tableView Default implementation

    Table view, that will be managed by DTTableViewManager. This property or optionalTableView property must be implemented in order for DTTableViewManager to work.

    Default Implementation

    Declaration

    Swift

    var tableView: UITableView! { get }
  • optionalTableView Default implementation

    Undocumented

    Default Implementation

    Undocumented

    Declaration

    Swift

    var optionalTableView: UITableView? { get }
  • manager Extension method

    Lazily instantiated DTTableViewManager instance. When your table view is loaded, call startManagingWithDelegate: method and DTTableViewManager will take over UITableView datasource and delegate. Any method, that is not implemented by DTTableViewManager, will be forwarded to delegate. If this property is accessed when UITableView is loaded, and DTTableViewManager is not configured yet, startManaging(withDelegate:_) method will automatically be called once to initialize DTTableViewManager.

    See also

    startManagingWithDelegate:

    Declaration

    Swift

    public var manager: DTTableViewManager { get set }