title: Can't compile connection iOS5
body: <p>On an app I'm working on for the iPhone, it has decided to not compile on me when I ask it to give me an outlet to a label on a prototype table cell. I've gotten outlets for labels before, but I was using either just a standard view or  static cells rather than prototype cells. I'm thinking it probably has to do with the fact that the label belongs to a prototype cell and will be duplicated since they all have the same identifier (Cell), but then again I could be off. I'm not sure what to do with this one, if I use just <code>cell.textLabel.text</code> then my upload button doesn't show up until after I click on the cell.</p>
  
  <p>The Error:</p>
  
  <pre><code>Couldn't compile connection: &lt;IBCocoaTouchOutletConnection:0x4007cd200  &lt;IBProxyObject: 0x4007de280&gt; =&gt; lblServerName2 =&gt; &lt;IBUILabel: 0x4009b7d00&gt;&gt;
  </code></pre>
  
  <p>Does anyone have any suggestions as to how I could go about setting the text on a custom label inside a cell?</p>
  
  <p>For reference, I've uploaded my project <a href="http://singularity-id.com/ImageShare.zip" rel="nofollow">here</a>. It's a mess at the moment, but it's currently just a proof on concept kind of thing. I'm going to go through and do clean up once I get it working.</p>
  
  <p>Any suggestions are appreciated.</p>
  
  <p>EDIT:</p>
  
  <p><a href="http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1" rel="nofollow">This</a> page helped out. I found it almost immediately after posting this question. Basically, I set the tag of my label to 100 and then used this code inside of the cellForRowAtIndexPath method.</p>
  
  <pre><code>UILabel *lblServerName = (UILabel*)[cell viewWithTag:100];
  lblServerName.text=[server getName];
  </code></pre>
  
  <p>and there it was, my label working correctly and my button showing up.</p>