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 cell.textLabel.text
then my upload button doesn't show up until after I click on the cell.
The Error:
Couldn't compile connection: <IBCocoaTouchOutletConnection:0x4007cd200 <IBProxyObject: 0x4007de280> => lblServerName2 => <IBUILabel: 0x4009b7d00>>
Does anyone have any suggestions as to how I could go about setting the text on a custom label inside a cell?
For reference, I've uploaded my project here. 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.
Any suggestions are appreciated.
EDIT:
This 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.
UILabel *lblServerName = (UILabel*)[cell viewWithTag:100];
lblServerName.text=[server getName];
and there it was, my label working correctly and my button showing up.