Below is shown navigation stack.
UIViewController -> UIContainerViewController -> UINavigationViewController -> UIPageViewController -> UIViewController
The parent view (First view controller) contains a button and child view (Last view controller) contains UITextField.
What I want to do is that when I press the button in parent view, the text from the child view text field should be stored in a NSString object in parent view.
What I tried is:
ChildViewController *CV = [self.childViewControllers lastObject]
ChildViewController *CV = [self.storyboard instantiateViewControllerWithIdentifier:@"ChildViewController"]
None of the above working.
Thanks in advance.