I have my storyboard set up like this:
- A view defined as a custom class, let's call it
V1ViewController - This view has a view container
- The view container has a
UITableViewControllerwith a set of static cells - The cells are of style "Left Detail"
I'm trying to access the text box in the Left Detail from the code in V1ViewController, but can't seem to figure out how to traverse that hierarchy. Any help would be appreciated.
This is the proper way to get a reference to your child view controller:
Keep in mind that because this is a Container view this method will be called upon load of your
ViewController. Therefore it would be a good idea to savemyChildViewControlleras a property or an instance variable for later use.