Getting reference to the view of a container view
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
Edit:
This question basically comes down to how to get a reference to the
UIViewController(2) that is being pointed by the UIContainerView from
inside the UIViewController(1) containing the UIContainerView.
No comments:
Post a Comment