Gabriel Oliva
Gabriel Oliva

Reputation: 188

Set View Controller root in Storyboard

I was using the JASidePanels and Storyboards in my app and when I want to change the center view using self.sidePanelController.centerPanel = [[UINavigationController alloc] initWithRootViewController:[[TestViewController alloc] init]; I don't get the view on the center. But if I do the layout programmatically, I get the view.

So how do I init a view as root in Storyboard?

Upvotes: 1

Views: 1351

Answers (1)

Live2Enjoy7
Live2Enjoy7

Reputation: 1105

You initiate a view controller as a root. you do it by dragging the arrow inside the story board:

enter image description here

Upvotes: 1

Related Questions