RSDTableStepHeaderView

open class RSDTableStepHeaderView : RSDStepHeaderView

RSDTableStepHeaderView is a concrete implementation of RSDStepHeaderView that will automatically lay out the UI elements in this order, from top to bottom of the view:

  1. cancelButton: UIButton - allows for cancelling the task
  2. progressView: RSDStepProgressView - show progress thru the current flow
  3. imageView: UIImageView - shows an image associated with the current step
  4. titleLabel: UILabel - generally the Title of the current step
  5. textLabel: UILabel - generally the Text of the current step
  6. learnMoreButton: UIButton - a button to call the learnMoreAction
  7. detailLabel: UILabel - a label intended to prompt the user to enter data or make a selection

Several public properties are provided to configure the view, such has hiding or showing the learnMoreButton or progressView, and providing a minimumHeight or customView.

  • Convenience method for adding a learn more button if needed.

    Declaration

    Swift

    open func addLearnMoreIfNeeded()
  • Convenience method for adding an image view if needed.

    Declaration

    Swift

    open func addImageViewIfNeeded()
  • Convenience method for adding a label.

    Declaration

    Swift

    open func addLabel() -> UILabel
  • Convenience method for adding the title label if needed.

    Declaration

    Swift

    open func addTitleLabelIfNeeded()
  • Convenience method for adding the text label if needed.

    Declaration

    Swift

    open func addTextLabelIfNeeded()
  • Convenience method for adding the detail label if needed.

    Declaration

    Swift

    open func addDetailLabelIfNeeded()
  • Your subclass can override this function to add more vertically stacked views, either before or after all the existing ones, depending on whether you add them before or after calling the super function. If you do, you’ll need to manage removing and re-adding the associated constraints in your override as well.

    Declaration

    Swift

    open func updateVerticalConstraints(currentLastView: UIView?) -> (firstView: UIView?, lastView: UIView?)

    Parameters

    currentLastView

    The last (vertical) view currently in the navigation header. If no views are added in a subclass override of this function, this should be returned in the lastView parameter.

    Return Value

    A tuple with the firstView and lastView that had vertical constraints applied. If none were applied, firstView will be nil, and lastView will be the same as currentLastView.