[Solved] Share Data Between View Controller and Container View
You are on the right track to setup the delegate. In Storyboard: create a Segue of type Embed Segue from the ContainerView to the ViewController to embed. Select the segue and set a Identifier. In Code, in prepareForSegue(): Set the myContainerView propert Set the delegate class ViewController: UITableViewController, ContainerViewDelegate { var myContainerView:ContainerView? // we do … Read more