FHSegmentedViewController
Requirements
Installation
pod 'FHSegmentedViewController'
From source
- Drag the
FHSegmentedViewController
folder to your project
Getting Started
- Create a subclass of
FHSegmentedViewController
in your project
#import "FHSegmentedViewController.h"
@interface MasterViewController : FHSegmentedViewController
2.Implement
- (void)viewDidLoad
- (void)viewDidLoad
{
[super viewDidLoad];
[self setViewControllers:@[[self.storyboard instantiateViewControllerWithIdentifier:@"firstSubViewController"], [self.storyboard instantiateViewControllerWithIdentifier:@"secondSubViewController"]]];
}
- Push an instance of
AnotherViewController
.
UIViewController *viewController = [self.storyboard instantiateViewControllerWithIdentifier:@"firstSubViewController"];
[self pushViewController:viewController title:@"anotherViewController"];
Download: https://github.com/iDay/FHSegmentedViewController/archive/master.zip
No comments:
Post a Comment