selectSegment(withTag:)
Selects the segment with the specified tag.
Declaration
func selectSegment(withTag tag: Int) -> BoolParameters
- tag:
The tag associated with the desired segment.
Return Value
true if the segment was selected successfully; otherwise, false.
Discussion
Typically, you use Interface Builder to specify the tag for each segment. You may also set this value programmatically using the setTag(_:forSegment:) method.