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:
- cancelButton: UIButton - allows for cancelling the task
- progressView: RSDStepProgressView - show progress thru the current flow
- imageView: UIImageView - shows an image associated with the current step
- titleLabel: UILabel - generally the Title of the current step
- textLabel: UILabel - generally the Text of the current step
- learnMoreButton: UIButton - a button to call the learnMoreAction
- 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.
-
Undocumented
Declaration
Swift
public init()
-
Undocumented
Declaration
Swift
public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
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(font: UIFont, color: UIColor) -> 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()
-
Undocumented
Declaration
Swift
open override func layoutSubviews()
-
Undocumented
Declaration
Swift
open override func updateConstraints()