Tabbed View with View Controllers


Is there a good way of using the SEssentialsTabbedView when each tab will have a unique view controller?   Currently if I load my VC from a story board, add it to the controle, none of the “view management” activities get called(loadview, viewDidLoad etc…).


@property (nonatomic, strong) SEssentialsTabbedView *clientTabView;


self.clientTabView = [[SEssentialsTabbedView alloc] initWithFrame:CGRectInset(self.mainView.bounds, 0,0)];;
self.clientTabView.dataSource = self;
[self.mainView addSubview:self.clientTabView];

self.clientGoalsViewController = [storyboard instantiateViewControllerWithIdentifier:@“ClientGoals”];

SEssentialsTab *myTab = [[SEssentialsTab alloc] initWithName:text icon:nil];
[self.mapTabToView setObject:view forKey:[NSValue valueWithNonretainedObject:clientGoalsViewController.view]];
[self.clientTabView addTab:clientGoalsViewController.view];


Hi there,

To do this you would have to manage the view controllers yourself and then when adding the views to the tab, ensure you add the view from the view controllers you’ve created. From here you’ll be able to get access to your view management methods.

Kind regards,

Matt / iOS Developer