I have an issue with UINavigationController
.
I have a container view (designed in .xib file). Also, I have a view controller.
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:self.viewController];
[self.containerView addSubview:navigationController.view];
Because of reasons I am not aware of, view controller's self.viewController
view is not initialised (method - viewWillAppear
is not being called).
I wonder, why method - viewWillAppear
is not called and how to change that?