SegmentedController
public protocol SegmentedControllerRepresents a type which provides data and handling for actions for a SegmentedViewController.
- 
                  
                  Returns the number of segments. DeclarationSwift func numberOfSegments() -> IntReturn ValueThe number of segments. 
- 
                  
                  Returns the view controller for the given segment index. DeclarationSwift func viewControllerForSegment(atIndex index: Int) -> UIViewController?ParametersindexAn index of a segment. Return ValueThe view controller for the given segment index. 
- 
                  
                  Returns the title for the given segment index. DeclarationSwift func titleForSegment(atIndex index: Int) -> String?ParametersindexAn index of a segment. Return ValueThe title for the given segment index. 
- 
                  
                  Tells the segmented controller that the segment at the specified index was selected. DeclarationSwift func didSelectSegment(atIndex index: Int, of segmentedViewController: SegmentedViewController)ParametersindexThe index of the selected segment. segmentedViewControllerThe segmented view controller object that is notifying you of the selection change. 
 View on GitHub
View on GitHub SegmentedController Protocol Reference
        SegmentedController Protocol Reference