I'm trying to learn how to make child view controller and face the problem: child view controller I made for some unknown reasuns occupies the whole screen instead of view to which I add it. Here is my super-simple code:
CVCChildViewController *childViewController =
[[self storyboard] instantiateViewControllerWithIdentifier:kVCIdentifier];
[self addChildViewController:childViewController];
[self.childView addSubview:childViewController.view];
[childViewController didMoveToParentViewController:self];
And here is storyboard screen:
White UIView (childView) is subview of self.view. And I wand child view controller does not cross this childView bounds. How could I do this?