SegmentedViewController

open class SegmentedViewController : NibViewController

A NibViewController subclass that manages segmented views.

Being a subclass of a NibViewController, an associated nib file is required with outlets connected.

This includes a segmented control that receives value changed events to change the shown view inside its container view. Data and selection actions are managed by an object conforming to SegmentedController which is assigned to the segmentedController property.

  • The segmented control.

    Declaration

    Swift

    @IBOutlet
    open var segmentedControl: UISegmentedControl!
  • The content view.

    Declaration

    Swift

    @IBOutlet
    open var contentView: UIView!
  • The segmented controller

    Declaration

    Swift

    open var segmentedController: SegmentedController?
  • Declaration

    Swift

    override open func setup()
  • Reloads the segmented control and the container view contents.

    Declaration

    Swift

    open func reloadData()
  • Reloads the segmented control segments.

    Declaration

    Swift

    open func reloadSegments()
  • Selects the segment at the specified index.

    Declaration

    Swift

    open func selectSegment(atIndex index: Int)

    Parameters

    index

    The index of the segment.