My question is a follow up to someone else's question. In the image that @ritch provides with his question, he has the following view controllers
"View Controller" -> (Container View)"View Controller" ->["First Controller", "Second Controller"]
For my question, I will rewrite them as
"Parent Controller" -> (Container View)"Child Controller" ->["First Controller", "Second Controller"]
So I am trying to implement the method
- (IBAction)SegmentedControlValueChange:(UISegmentedControl *)sender
{
}
Logically I thought this method should be in "Parent Controller" while, for reference, in "Child Controller" I should have displayContentController
and
FirstController *firstController = [self.storyboard instantiateViewControllerWithIdentifier:@"yourIdentifier"];
Will someone please clarify for me: between SegmentedControlValueChange and instantiateViewControllerWithIdentifier:
- What code goes in the h and m files of "Parent Controller"?
- What code goes in the h and m files of "Parent Controller"?