Skip to content

A custom container view controller that allows to switch between child view controllers using a SegmentedControl

License

Notifications You must be signed in to change notification settings

ale84/ALESegmentedViewController

Repository files navigation

ALESegmentedViewController

A custom container view controller that allows to switch between children using a SegmentedControl

Usage

Instantiate the view controller and pass it an array of viewcontrollers.

You can set a delegate to be notified when the currently selected view controller changes.

The title of the segmentedControl segments matches the value of the title property of the corresponding view controller.

//...
FirstViewController *first = [[FirstViewController alloc]initWithNibName:@"FirstViewController" bundle:nil];
SecondViewController *second = [[SecondViewController alloc]initWithNibName:@"SecondViewController" bundle:nil];

ALESegmentedViewController *segmentedViewController = [[ALESegmentedViewController alloc]init];
segmentedViewController.viewControllers = @[first, second];
//...

About

A custom container view controller that allows to switch between child view controllers using a SegmentedControl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published