Ios - action on button in nib file
<p>Good evening,</p>

<p>I'm wondering if displaying a nib file as a subview is the more standardized way of displaying a subview when compared to hiding and unhiding a view of the same class.</p>

<p>Also,</p>

<p>How would i be able to set an action on the buttons in the nib file?</p>

<pre><code>let test = xWork.loadViewFromNib()
        test.center = view.center
        self.view.addSubview(test)
</code></pre>

<p>Currently doing the above. Even though my xWork nib has a class with an outlet for a button, i'm unsure as to how to set an action to it.</p>

<p>Thank you</p>