Reputation: 33
when I drag a container into a uivewcontroller i get a new uiviewcontroller in red . link
My question here how can i load this new view controller from another storyboard .
Upvotes: 0
Views: 324
Reputation: 165
İf I understand truly;
You want to add another UIViewController in ContainerView therefore you can make it in storyboard with using segue that is embed property.
Don't use different storyboard if you want to do that. 1 storyboard many controllers just connect it as I said above.
Upvotes: 0
Reputation: 2016
You can use this :
UISoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:identifierOfSearchedViewController];
Upvotes: 2