Instance Method

isEnabledForSegment:

Returns a Boolean value indicating whether the specified segment is enabled.

Declaration

- (BOOL)isEnabledForSegment:(NSInteger)segment;

Parameters

segment

The index of the segment whose enabled state you want to get. This method raises an exception (NSRangeException) if the index is out of bounds.

Return Value

YES if the segment is enabled; otherwise, NO.

See Also

Enabling and Disabling Segments

- setEnabled:forSegment:

Sets the enabled state of the specified segment