user1645638
user1645638

Reputation: 33

load uiviewcontroller container from another storyboard

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

Answers (2)

NevzatR
NevzatR

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

tdelepine
tdelepine

Reputation: 2016

You can use this :

UISoryboard *storyboard = [UIStoryboard storyboardWithName:storyboardName bundle:nil];
UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:identifierOfSearchedViewController];

Upvotes: 2

Related Questions