Instance Property

numberOfMajorTickMarks

The number of major tick marks associated with the receiver.

Declaration

@property NSInteger numberOfMajorTickMarks;

Discussion

The number of major tick marks must be less than or equal to the number of tick marks returned by numberOfTickMarks. For example, if the number of tick marks is 11 and you specify 3 major tick marks, the resulting level indicator will display 3 major tick marks alternating with 8 minor tick marks, as in the example shown in NSLevelIndicator.

Figure 1

Major and minor tick marks in a level indicator

Major and minor tick marks in a level indicator

See Also

Managing Tick Marks and Style

tickMarkPosition

Determines how the receiver’s tick marks are aligned with it.

numberOfTickMarks

The number of tick marks associated with the receiver.

- tickMarkValueAtIndex:

Returns the receiver’s value represented by the tick mark at the specified index (the minimum-value tick mark has an index of 0).

- rectOfTickMarkAtIndex:

Returns the bounding rectangle of the tick mark identified by the specified index (the minimum-value tick mark is at index 0).

levelIndicatorStyle

The appearance of the indicator.

NSLevelIndicatorStyle

Constants that specify a level indicator's appearance.