Instance Property

numberOfSegments

Returns the number of segments the receiver has.

Declaration

var numberOfSegments: Int { get }

See Also

Managing Segments

func insertSegment(with: UIImage?, at: Int, animated: Bool)

Inserts a segment at a specified position in the receiver and gives it an image as content.

func insertSegment(withTitle: String?, at: Int, animated: Bool)

Inserts a segment at a specific position in the receiver and gives it a title as content.

func removeAllSegments()

Removes all segments of the receiver

func removeSegment(at: Int, animated: Bool)

Removes the specified segment from the receiver, optionally animating the transition.

var selectedSegmentIndex: Int

The index number identifying the selected segment (that is, the last segment touched).