Connecting a UILabel to an IBOutlet causes a crash
<p>I have a UIViewController I am loading from a xib file and pushing onto the navigation controller stack.</p>

<p>In the header file for the View Controller, I have:</p>

<pre><code>IBOutlet UILabel *myTitle;
</code></pre>

<p>I don't do anything with "myTitle" in the code yet; I was just setting up the connections.</p>

<p>When I compile and run the application, and there are no labels defined in the xib file (and thus, nothing attached to the IBOutlet), it works.  The view controller animates into view just fine, showing the view I built in Interface builder.</p>

<p>If I add a label to the xib in the interface builder, but don't connect it to the outlet, and recompile, it still works, showing the label with the default text I entered for it.</p>

<p>But if I connect the IBOutlet myTitle to the label in interface builder, recompile, and run the app, it works fine until I try to push the view controller onto the navigation controller's stack, at which point I get a crash:</p>

<pre><code>*** -[UILabel copyWithZone:]: unrecognized selector sent to instance 0x4558e20
</code></pre>

<p>If I disconnect the outlet again, it resumes working, showing the static label as before.  It appears that there's something funky going on when the view gets displayed, because the crash happens when I push the view onto the navigation stack.</p>

<p>Am I not supposed to add an IBOutlet to a UILabel or something?  Or is there something else going on?  Any suggestions on where to look for trouble?</p>
