Instance Property

numberOfSegments

Returns the number of segments the receiver has.

Declaration

@property(nonatomic, readonly) NSUInteger numberOfSegments;

See Also

Managing Segments

- insertSegmentWithImage:atIndex:animated:

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

- insertSegmentWithTitle:atIndex:animated:

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

- removeAllSegments

Removes all segments of the receiver

- removeSegmentAtIndex:animated:

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

selectedSegmentIndex

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