The problem here is that the view controller of a child view is often added as a subtask of some view of the container of the parent view controller. Since you cannot have sessions from random UIView controls that prevent you from creating segues from the UIView container UIView for the child scene. Thus, you just need to write the code yourself.
Fortunately, these are just the four lines of code that are listed in Adding a child controller from the View controller programming guide. Personally, I could change this code a bit by specifying the following method in my view controller:
- (void) displayChildController:(UIViewController*)childController inContainerView:(UIView *)containerView { [self addChildViewController:childController];
However, I made custom settings for changing the active child controller from one scene to another, but this is, in fact, just a variation of the code specified later in the above document. But this is not a question of embedding segue, so it is not relevant here
source share