title: Getting reference to the view of a container view
body: <p>I am new to iOS App Development. I have connected a tableview controller such that when I select one of the rows I get another UIViewController using didSelectRowAtIndexPath. I have a container view inside this UIViewController which displays (say for the time being) index of the row on which didSelectRowAtIndexPath was called. I want to do this using a segue, but the problem is I don't know how to get a reference to the view controller which is formed by using the container view. I know you can get the destination View Controller using segue.destinationViewController in the prepareForSegue but how do I get a reference to view controller that will be loaded because of the container view. I am building the app for iOS 6. Also I have used Storyboard for the UIs. Thanks</p>
  <h1>Edit:</h1>
  <p>This question basically comes down to  how to get a reference to the UIViewController-2 that is being pointed by the UIContainerView which is inside the UIViewController-1. The UIViewController-1 is triggered by selecting a row of UITableViewController</p>
  <p>UITableViewController (selecting a row to give)---&gt; UIViewController-1 which contains....ContainerView ---&gt;UIViewController-2(ViewController associated with ContainerView) .</p>