Updating Content In Container View
<p>I have a Container View inside a View Controller. When the user presses a button the Container View is to be displayed, but the text on the Container View is based on which button the user pressed. To do this I need to update the Container View but I am not sure on how to do this.</p>

<p>This is my Container View Code:</p>

<pre><code>override func viewDidLoad() {
        super.viewDidLoad()

        Cancel_Button.hidden = true
        Save_Button.hidden = true

        let Storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
        let ViewController: View = Storyboard.instantiateViewControllerWithIdentifier("View") as! View
        Title_String = ViewController.String
        Title_Label.text = Title_String
    }
</code></pre>

<p>And this is the code in my View Controller:</p>

<pre><code>@IBOutlet var View_Controller_Popup: UIView!
var String = String()

override func viewDidLoad() {
        super.viewDidLoad()


        View_Controller_Popup.hidden = true
    }

@IBAction func Button_Pressed(sender: AnyObject) {
        let Storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
        let ViewController: ContainerView = Storyboard.instantiateViewControllerWithIdentifier("Container") as! ContainerView
        self.String = "Specific Title"
        ViewController.Title_String = self.String
        self.View_Controller_Popup.hidden = false
    }
</code></pre>

<p>So how do I reload the Container View so that when a button is pressed, the Container View is displayed with label text based on the button pressed.</p>

<p><strong>Update:</strong></p>

<p>As some people cannot understand the issue I am having I will reword the problem with images.</p>

<p>This is my View:</p>

<p>Images have been deleted</p>

<p>As you can see there are many Buttons (with icons). When the user presses the button I want a container view to pop up showing information:</p>

<p>So for each button the Label text has to be different. But currently in the app the string is blank and so the Label text is empty:</p>

<p>I believe that this is because I am not updating the code in the container view, and so the string is still empty.</p>

<p>So the issue is that the container view is not displaying the title label correctly, and I think this is due to not updating the container view, but I don't actually know how to update the container view.</p>